Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 15,000 community submitted regex patterns...
There does not seem to be anything here
Community Library Entry
0
Regular Expression
Python
r"
(
(
(
2
[
0
-
5
]
[
0
-
5
]
)
|
(
1
[
0
-
9
]
[
0
-
9
]
)
|
(
[
1
-
9
]
[
0
-
9
]
)
|
(
[
0
-
9
]
)
)
\.
){3}
(
(
2
[
0
-
5
]
[
0
-
5
]
)
|
(
1
[
0
-
9
]
[
0
-
9
]
)
|
(
[
1
-
9
]
[
0
-
9
]
)
|
(
[
0
-
9
]
)
)
"
gm
Open regex in editor
Description
写一个正则表达式判断一个字符串是否是ip地址
规则:一个ip地址由4个数字组成,每个数字之间用.连接。每个数字的大小是0-255 例如:255.189.10.37 正确 256.189.89.9 错误
Submitted by
anonymous
-
4 years ago