darrengan has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Understand that from the file name file1_system_051117123050.txt, when i do a
i will get 17123050. How do i only capture 1712?
Cheers
Understand that from the file name file1_system_051117123050.txt, when i do a
grep /\d{8}\.txt$/
i will get 17123050. How do i only capture 1712?
Cheers
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: grep question
by monarch (Priest) on Nov 17, 2005 at 05:31 UTC | |
Re: grep question
by murugu (Curate) on Nov 17, 2005 at 05:54 UTC | |
Re: grep question
by Roger (Parson) on Nov 17, 2005 at 05:42 UTC | |
Re: grep question
by kulls (Hermit) on Nov 17, 2005 at 06:09 UTC | |
Re: grep question
by l.frankline (Hermit) on Nov 17, 2005 at 06:01 UTC |
Back to
Seekers of Perl Wisdom