Did this regex match ipv4 address : r"^([0-9]{1,3}\.){1,3}([0-9]{1,3})</head>quot; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Did this regex match ipv4 address : r"^([0-9]{1,3}\.){1,3}([0-9]{1,3})
quot;

Regex ipv4

18th Aug 2017, 3:08 PM
Assem Jhine
Assem Jhine - avatar
3 Answers
+ 5
Yes, but it will also catch 888.342.011.384, which is not a valid IPv4 address.
18th Aug 2017, 4:53 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 4
For future doubts, check out: https://regex101.com You can check your regex in several flavors - Python, PHP or JavaScript. Works perfectly and understands even the complex, nested expressions.
18th Aug 2017, 5:49 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
OK thks :)
24th Aug 2017, 10:18 AM
Assem Jhine
Assem Jhine - avatar