Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Regular Expression Help

by pg (Canon)
on Nov 18, 2005 at 20:16 UTC ( #509937=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        my $str = "/rootdir/sub1/sub2/sub3/sub4";
        print substr($str, 0, rindex($str, "/", length($str) - 2));
    }
    
  2. or download this
    /rootdir/sub1/sub2/sub3
    /rootdir/sub1/sub2/sub3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://509937]
help
Chatterbox?
and the fog begins to lift...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-02-26 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (375 votes). Check out past polls.