in reply to regular expression for "time-of-day" is not working
It's got other problems too. It won't match "09:02" or "23:02" or "00:02". You probably want something like this ...
/\b ( ( ([01][0-9]|2[0123]):[0-5][0-9] ) |( (1[012]|[1-9] ):[0-5][0-9]\s+[ap]m ) ) \b/ix
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: regular expression for "time-of-day" is not working
by vjvalor (Initiate) on Apr 05, 2012 at 12:02 UTC |
In Section
Seekers of Perl Wisdom