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
/
((\d+){4})-\1
/
gm
Input 1
1
New
1988-1988 1967-1967 1206-2016 2016-2016 1111-1010
Extraction
1988-1988 1967-1967 1206-2016 2016-2016 1111-1010