|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: A regular expression that will work for (hh:)mm:ss [converting clock time to seconds]by Riales (Friar) |
| on Apr 13, 2012 at 00:35 UTC ( #964845=note: print w/ replies, xml ) | Need Help?? |
|
You want the ? which allows 0 or 1 occurrence of the preceding element.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||