View Single Post
Old 06-12-2002, 07:37 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
try: "([0-9]{2}:[0-9]{2} (AM|PM)(\.|\s|$))"

the "\." will match a period in case AM or PM is at the end of a sentance. You need the "\" because "." alone just matches any single character.

or

the \s will match a white space after AM or PM,

or

the $ will match end of line.. in the case that there is no white space after AM or PM.

Last edited by sde; 06-12-2002 at 09:30 AM.
sde is offline   Reply With Quote