http://www.perlmonks.org?node_id=1011776

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