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
/
([1-9]{2}|50)-[0-9]{3,4}$
/
gm
Input 1
1
New
11-184 11-0132 12-729 13-276 13-35 13-3573 14-453 15-743 16-2576 16-251 17-34567 17-345 18-730 19-137 19-3a61 50-947 50-2693
Substitution
11-184 11-0132 12-729 13-276 13-35 13-3573 14-453 15-743 16-2576 16-251 17-34567 17-345 18-730 19-137 19-3a61 50-947 50-2693