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+([1-9]\d*)$
/
gm
Input 1
1
New
020200218-0PSS-0010 020200218-0PSS-001 020200218-0PSS-00 020200218-0PSS-001001
Substitution
-$1
020200218-0PSS-0010 020200218-0PSS-001 020200218-0PSS-00 020200218-0PSS-001001