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

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

by Anonymous Monk
on Dec 10, 2012 at 15:22 UTC ( #1008119=note: print w/replies, xml ) Need Help??


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

Perhaps read "complicated" as "non-trivial", EG: having alternations
  • Comment on Re^3: alternation in regexes: to use or to avoid?

Replies are listed 'Best First'.
Re^4: alternation in regexes: to use or to avoid?
by balker (Novice) on Dec 10, 2012 at 15:29 UTC

    Please read the benchmark numbers.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008119]
help
Chatterbox?
marto wanders off to think of a suitable to write on a retirement card
[LanX]: suitable what? ... insult?
[Discipulus]: goodby stress..
LanX you always reminded me of Sean Connery. ..

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2018-04-24 11:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?