Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Get a known substring from a string

by Corion (Patriarch)
on Sep 10, 2016 at 09:42 UTC ( #1171508=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # a:  if( $s =~ m[(lazy)] ){ $found=$1 }
    Compiling REx "(lazy)"
    ...
    a 2038631/s   -- -50% -75%
    c 4089154/s 101%   -- -49%
    b 8013601/s 293%  96%   --
    
  2. or download this
    use strict;
    use Benchmark 'cmpthese';
    ...
    
    cmpthese( -1, \%benchmarks);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2023-03-27 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?