dani_cv_74 has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
Thanks in advance.
I want a regular expression where I can retrieve the value of the following.
$str = "2006-01-30 10:11:08.507" I wanna retrieve the middle value -> '01',
Format will be the same always, but the first block(year block) and the day and time block (last block) can vary. finally the string should have only the month value.
Can anyone please help me this?
Thanks and Best Regards,
Dan.
Edited by planetscape - added code tags and rudimentary formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Exp - Retrieve value
by japhy (Canon) on Apr 11, 2006 at 21:50 UTC | |
|
Re: Perl Exp - Retrieve value
by davidrw (Prior) on Apr 11, 2006 at 22:03 UTC | |
|
Re: Perl Exp - Retrieve value
by saintmike (Vicar) on Apr 11, 2006 at 21:51 UTC | |
by ikegami (Patriarch) on Apr 11, 2006 at 21:53 UTC | |
|
Re: Perl Exp - Retrieve value
by ikegami (Patriarch) on Apr 11, 2006 at 21:51 UTC | |
|
Re: Perl Exp - Retrieve value
by ambrus (Abbot) on Apr 12, 2006 at 10:24 UTC |