Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Slow Regex - How to Optimize

by borisz (Canon)
on Aug 30, 2005 at 22:09 UTC ( #487966=note: print w/replies, xml ) Need Help??


in reply to Slow Regex - How to Optimize

my $str = join '|', sort { length $b <=> length $a } keys %SUBS; my $re = qr/[^a-zA-Z]($str)[^a-zA-Z]*\(/; /$re/ and push @subs, $1 for ( @sub_code );
Boris

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://487966]
help
Chatterbox?
[Eily]: oh no, how am I going to answer to that prince who wanted to leave me all this money?
[Eily]: and all those mails to enlarge my
[Eily]: inbox
[marto]: I'm happy to be the middle man :P
LanX found a bone xylophone for node reaper massage
[Veltro]: NodeReaper did not notice messages from Klaas Vaak, lucky Eily...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2018-05-23 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?