Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Question on Regex

by karlgoethebier (Prior)
on Nov 18, 2012 at 14:00 UTC ( #1004415=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $string =~ m/.+\/.+\/.+\/(.+)\/.+/;
    
    print $1;
    
  2. or download this
    $string =~m/.+\/.+\/.+\/.+\/(.+)\/.+/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004415]
help
Chatterbox?
and John Coltrane plays...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-11-23 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (330 votes). Check out past polls.

    Notices?