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
/
^0?$|^(?:0?[1-9]|[12]\d|3[01])(?:-(?:(?:0$|0?[1-9]|1[012]?)(?:-\d{0,4})?)?)?$
/
gm
Input 1
1
New
30-0 30-01- 30-01-2016 30-01-20161 1-30 01-30- 01-30-2016 01-30-20161 2016- 2016-01- 2016-01-30 2016-01-301
Extraction
30-0 30-01- 30-01-2016 30-01-20161 1-30 01-30- 01-30-2016 01-30-20161 2016- 2016-01- 2016-01-30 2016-01-301