Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: grep question

by l.frankline (Hermit)
on Nov 17, 2005 at 06:01 UTC ( #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? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2023-01-31 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?