Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^((?:(?=29[\/\-.]0?2[\/\-.](?:[1-9]\d)?(?:[02468][048]|[13579][26])(?!\d))29)|(?:(?=31[\/\-.](?!11)0?[13578]|1[02])31)|(?:(?=\d?\d[\/\-.]\d?\d[\/\-.])(?!29[\/\-.]0?2)(?!31)(?:[12][0-9]|30|0?[1-9])))[\/\-.](0?[1-9]|1[0-2])[\/\-.]((?:[1-9]\d)?\d{2})$
/
gm
Input 1
New
29/02/2002 29/02/2000 29/02/1998 29/02/1976 29/02/52 29/02/00 29/02/20 29/02/1968 29/2/1968 29/03/1968 29/2/1963 31/1/1000 31/03/1998 31/05/1998 31/7/1998 31/08/1998 31/10/1998 31/12/1998 30/11/1998 31/09/1998 30/09/1998 4/4/2000 05/4/2000 30/11/2000
Substitution
29/02/2002 29/02/2000 29/02/1998 29/02/1976 29/02/52 29/02/00 29/02/20 29/02/1968 29/2/1968 29/03/1968 29/2/1963 31/1/1000 31/03/1998 31/05/1998 31/7/1998 31/08/1998 31/10/1998 31/12/1998 30/11/1998 31/09/1998 30/09/1998 4/4/2000 05/4/2000 30/11/2000