[regex-coach] Re: Regex Coach
Edi Weitz
edi at agharta.de
Sat Sep 17 15:12:01 UTC 2005
On Fri, 16 Sep 2005 22:21:33 +0200 (CEST), Maciej Żenczykowski <maze at cela.pl> wrote:
> Pentium III 1 GHz + 512MB ram (Linux - Fedora Core 3)
>
> The Regex:
>
> # some 200 chars of comments
> (?: - (?: 0 | [1-9]\d{0,3} | [12]\d{4} | 3[01]\d{3}
> | 32[0-6]\d\d | 327[0-5]\d | 3276[0-8] )
> | (?:\+|(?<![\d+\-])) (?: 0 | [1-9]\d{0,3} | [12]\d{4} | 3[01]\d{3}
> | 32[0-6]\d\d | 327[0-5]\d | 3276[0-7] ) )(?!\d)
> # should match -32768 to -0, and [+]0 to [+]32767
>
> with 'x' and 'g' options
>
> target string:
>
> 1 2 3 -5 -130 -128 -127 -111 -99 -9 -1 0 +0 -0 +1 123 +99 +130
> 345+34+11 0x10e -32768 -32769 -9 -99 -999 -9999 -99999 -29999 -39999
> -31999 -32999 -32799 -32699 -32769 -32759 -32768 -0 0 +0 99999 39999
> 32999 32799 32769 32768 32767 32759 32699 31999 29999 9999 999 99 9 0
>
> requires roughly 2 seconds for a screen update.
Hmm, screen update on my laptop (Pentium M 2.0 GHz, XP pro) is without
a noticable delay - even if I run the app from within VMWare
(simulating Debian Linux with 512 MB of RAM). Should it be that my
CPU is so much faster than yours?
Cheers,
Edi.
More information about the regex-coach
mailing list