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

Re^2: Regex, loops and subs

by Hena (Friar)
on Nov 15, 2005 at 11:15 UTC ( [id://508547]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex, loops and subs
in thread Regex, loops and subs

Is the negative character class faster? I had it before, but thought that using '.' would be slightly faster (though some times this feels like micro optimisation). Since its not a user defined list as such. It might be easier to read though.

Replies are listed 'Best First'.
Re^3: Regex, loops and subs
by tirwhan (Abbot) on Nov 15, 2005 at 11:33 UTC

    Yes, because it avoids the useless look-aheads and backtracks on failed matches.


    Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-23 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found