Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Regx Question

by mkmcconn (Chaplain)
on Jul 30, 2002 at 22:28 UTC ( [id://186381]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my $path = '\nbs\main\den\rel_10.\cr_Q00472526-03-1\final';
       $path =~ s/[^\\]+\\(\w+)$/$1/ ;
    ...
    
    __END__
    \nbs\main\den\rel_10.\final
    
  2. or download this
    
       my ($leaf ) = $path =~ m/[^\\]+$/g ;  #save the leaf
    ...
    __END__
    \nbs\main\den\rel_10.\final
    

Log In?
Username:
Password:

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

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

    No recent polls found