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
Get rid of extra zeros in ip addresses.
Open Workspace
PCRE (Legacy)
Substitution
Created 2017-02-08 19:28
0
Regular Expression
/
(
(
\D
|
^
)
0
+
(
0
|
[
1
-
9
]
+
)
)
/
g
Description
0127.000.00.01 turns to 127.0.0.1
Submitted by
Anonymous