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
x
IPv4 address from text
Open Workspace
Python
Match
Created 2021-11-07 07:39
0
Regular Expression
r"
(?:
^
|
\b
(?<!
\.
)
)(?:
1
?
\d
?
\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)(?:
\.
(?:
1
?
\d
?
\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
){3}(?=
$
|
[^
\w
.
]
)
"
gm
Description
Found in here,
stackoverflow url
.
Submitted by
Anonymous