Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
^([1-9]|1[0-2])(?:(\:[0-5][0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]))?(?:(\:[0-5][0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]))?(am|pm)$
"

Description

no description available

Submitted by anonymous - 9 years ago