Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(0[1-9]|[12][0-9]|3[01])[/]([01][12])[/]([1-9][0-9]{3})$
/

Description

A regular expression to validate a Date in format DD/MM/YYYY

Submitted by Felipe Montaña - 10 years ago