|
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 08:30 AM.
|