M
Marcel Hug
Hi all !
I have a little question !
I would like to check if a Ip address matches the notation of IPv4.
I do this by regular expression with the following expression:
\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-
9][0-9]?)\b
It works fine for the most cases, but it is possible to insert a string
like:
192.168.23.20-0
How can i fit this failure ?
Thanks
Regards
Marcel
I have a little question !
I would like to check if a Ip address matches the notation of IPv4.
I do this by regular expression with the following expression:
\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-
9][0-9]?)\b
It works fine for the most cases, but it is possible to insert a string
like:
192.168.23.20-0
How can i fit this failure ?
Thanks
Regards
Marcel