Python Learning
Sunday, 16 February 2020
Regex: How to match IP address in RFC1918 private IPV4 address ranges (in Python)?
The following regexp should work:
^(?:
10
|
127
|
172
\.
(?:
1
[
6
-
9
]|
2
[
0
-
9
]|
3
[
01
])|
192
\.
168
)
\.
.*
DEMO
from :
https://stackoverflow.com/questions/30674845/regex-how-to-match-ip-address-in-rfc1918-private-ipv4-address-ranges-in-python
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment