Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Question on Regex

by karlgoethebier (Monsignor)
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?
[Discipulus]: found translate only good from or possibly to english.. in any other case i use double way translation

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2018-06-19 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (111 votes). Check out past polls.

    Notices?