Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: RegEx is required for the below pattern

by toolic (Bishop)
on Sep 28, 2011 at 14:22 UTC ( [id://928342]=note: print w/replies, xml ) Need Help??


in reply to RegEx is required for the below pattern

Sounds like a job for File::Basename...
use warnings; use strict; use File::Basename; my $path = '/tom/john/jones/fredy/sam-joe/Install-xyz-opq.zip'; my $file = basename($path); print "$file\n"; __END__ Install-xyz-opq.zip

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-19 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found