Regular Expressions 101

Library entries

ISO 8601 date regex with check of number of day in a month

Vote

-1

Regular Expression
pcre

/
^(19[789]\d|2\d{3})-((0[13578]|1[02])-([0-2]\d|3[01])|02-[0-2]\d|(0[469]|11)-([0-2]\d|30))T([01]\d|2[0-4])(:[0-5]\d){2}Z$
/
g

Description

Loading markdown...
Submitted by anonymous - 4 years ago