Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: regex for negating a sequence (lookaheads and lookbehinds are now fast)

by grinder (Bishop)
on Oct 04, 2006 at 14:53 UTC ( #576339=note: print w/replies, xml ) Need Help??


in reply to Re: regex for negating a sequence
in thread regex for negating a sequence

lookahead/lookbehind assertions are rather expensive if the string being matched is long

demerphq might be too shy to toot his own horn, but a couple of weeks he landed an awesome patch to the development version of Perl that teaches the optimiser to look inside those assertions and use the information to improve the matching strategy used. Which equates to some massive speedups in some cases, perhaps the cases to which you were alluding.

Let's just hope that Perl 5.10 sees the light of day soon. There's lots of goodness in there waiting to be unleashed.

• another intruder with the mooring in the heart of the Perl

  • Comment on Re^2: regex for negating a sequence (lookaheads and lookbehinds are now fast)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576339]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2019-07-22 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (14 votes). Check out past polls.

    Notices?