Regular Expressions 101

Library entries

date validation during input

Vote

0

Regular Expression
pcre

/
^(?:(?:(?:(3)\.?([01]2))\.?(\d{1,4})?)|(?:(3)\.?(1)\.?([469]\d?))|([1-2][0-9]|0?[1-9])\.?(?:(1[0-2]|0?[1-9])\.?(\d{1,4})?|(0)?)|(?:(31)\.?(?:(?:(0?[13578]|1[02])\.?(\d{1,4})?)|(0)?))|(?:(30)\.?(?:(?:(0?[13456789]|1[0-2])\.?(\d{1,4})?)|(0)?))|([0-9]))$
/
gm

Description

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