Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: alternation in regexes: to use or to avoid?

by balker (Novice)
on Dec 10, 2012 at 15:29 UTC ( #1008121=note: print w/ replies, xml ) Need Help??


in reply to Re^3: alternation in regexes: to use or to avoid?
in thread alternation in regexes: to use or to avoid?

Please read the benchmark numbers.

Alternation is MUCH faster than looping over trivial regexes, except when you use captures inside the alternations.


Comment on Re^4: alternation in regexes: to use or to avoid?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-31 01:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls