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

Re^2: pattern matching with large regex

by Anonymous Monk
on Aug 13, 2005 at 21:32 UTC ( [id://483610]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %cases = (
      'one_large'  => sub { if($text=~/(stuff?)m0r3(?:[^:]*\.)?($big_strin
    +g)/i){my $match="$1:$2"}},
    ...
    '@strings    = ', scalar @strings,    " items\n\n";
    
    cmpthese( 0, \%cases);
    
  2. or download this
    $text       = 4578 characters
    $big_string = 210724 characters
    ...
    many_small 1.05/s         --      -100%
    one_large   630/s     60089%         --
       --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found