Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a simple question for you. I have a string like the below.
$string = "Sat, 05 Jan 2013 04:00:15 GMT";I want to take out the "05 Jan 2013" from that using regex.
Is that possible?. ie, i want to cut the "Sat," & "04:00:15 GMT" .
pls Note that this is common "Sat" could be "Mon" or "Sun" or "Fri" and "04:15 GMT" could be any time. Pls help monks.
Thx
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Take out the date using Regex.
by CountZero (Bishop) on Jan 05, 2013 at 13:16 UTC | |
Re: Take out the date using Regex.
by muba (Priest) on Jan 05, 2013 at 11:04 UTC | |
Re: Take out the date using Regex.
by karlgoethebier (Abbot) on Jan 05, 2013 at 11:25 UTC | |
Re: Take out the date using Regex.
by Anonymous Monk on Jan 05, 2013 at 11:06 UTC |
Back to
Seekers of Perl Wisdom