Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^ # New line T?([00-23]{2}) # Hour block (00 through 23 hours) \:?([00-59]{2}) # Minute block (00 through 59 minutes) \s* # Optional space ([ap])?\.?(m?)\.? # AM or PM, with or without periods $ # End of the string.
/
imgx

Description

no description available

Submitted by Michael Stemle - 9 years ago