Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\b(\d{4})-(\d{2})-(\d{2})\b
/
gm
Input 1
1
New
Some text 2018-08-28 11:56:48 .Some text 2017-10-30 07:39:21
Substitution
$3.$2.$1