Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
date format YYYY-MM-DD
Open Workspace
JavaScript
Match
Created 2022-07-06 20:37
0
Regular Expression
/
[
1
-
9
]
[
0
-
9
]
[
0
-
9
]
{2}
-
(
[
0
]
[
1
-
9
]
|
[
1
]
[
0
-
2
]
)
-
(
[
1
-
2
]
[
0
-
9
]
|
[
0
]
[
1
-
9
]
|
[
3
]
[
0
-
1
]
)
/
gm
Description
to detect date format YYYY-MM-DD ony starting from 1900
Submitted by
Anonymous