Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Pluggable regex engine in Perl

by moritz (Cardinal)
on Dec 27, 2010 at 09:27 UTC ( [id://879270]=note: print w/replies, xml ) Need Help??


in reply to Pluggable regex engine in Perl

I've heard that the regex API has changed quite a bit between 5.10 and 5.12 due to the promotion of regexes to first class objects. If that's true, one should either just target 5.12 or newer when writing a new plugin, or be aware of the differences and use some #ifdefs.

I wonder if any of these are in use and what are the use cases? What issues do these plugs solve that is impossible, harder, slower or have some other issues with the standard regex engine of Perl?

The now deceased re::engine::TRE had two features that made it attractive for some uses: for one it would match the longest of several alternations (instead of the first, as Perl does), and secondly it uses a non-backtracking state machine internally whenever possible, which means that pathological exponential time behavior doesn't occur as easily as with the Perl engine.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found