Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Regex style and efficiency

by bobf (Monsignor)
on Jan 10, 2010 at 22:07 UTC ( [id://816649]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $s = 'variable chars anchor want this';
    
  2. or download this
    $s = 'anchor want this';
    
  3. or download this
    if( $s =~ m/^.*?(anchor.*)$/ ){ $s = $1; }
    
  4. or download this
    if( $s =~ m/^(.*?)anchor/ ){ my $bad = $1; $s =~ s/$bad//; }
    
  5. or download this
    $s =~ s/^.*?anchor/anchor/;
    
  6. or download this
    e.g., loops that utilize reverse, chop, split, ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://816649]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found