in reply to Re: A NOT in regular expressions
in thread A NOT in regular expressions

Ilya saved you.

In older versions of Perl, or in other languages, the above would perform simply pathetically on something like:

"<%aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaa"
However Ilya's optimizations make it perform just fine in recent versions of Perl. :-)

Replies are listed 'Best First'.
Re: A NOT in regular expressions
by Abigail-II (Bishop) on May 14, 2003 at 15:03 UTC
    Yeah, too bad older versions of Perl don't have (?>).

    Abigail

      That wasn't what I was talking about.

      If you have a copy of Perl 5.005_03 sitting around, your code runs perfectly well on it, but on that string the Earth is likely to end before it would finish figuring out that there was no match.