Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^([12]\d)?(\d\d)[\.\/\-](0?[1-9]|1[012])[\.\/\-](0?[1-9]|[12]\d|3[01])\s([01]?[0-9]|2[0-3]):[0-5][0-9]$
/

Description

Validation for date 2013.12.24 14:50

Submitted by axelprog - 10 years ago