Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: grep question

by l.frankline (Hermit)
on Nov 17, 2005 at 06:01 UTC ( [id://509299]=note: print w/replies, xml ) Need Help??


in reply to grep question

Hi,

Try this....

$_= 'file1_system_051117123050.txt';
($_) = grep s/.*(\d{4})\d{4}\.txt/$1/, $_;
print $_;

Regards
Franklin
Don't put off till tomorrow, what you can do today.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found