Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://576339]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found