Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Java 8

"
^((0)*[1-9]|1[012]|3[01])-((0)*[1-9]|1[012]|2[012]|3[01])-(19[0-9][0-9]|20[0-9][0-9])$
"
gm

Description

Valid date (DD-MM-YYYY) from 1900 to 2099

Submitted by Nevix-Sama - 2 years ago