Displaying page
of
pages;
Items to
Title |
Test
Details
IP validator
|
Expression |
/^(?:(?:1\d?\d|[1-9]?\d|2[0-4]\d|25[0-5])\.){3}(?:1\d?\d|[1-9]?\d|2[0-4]\d|25[0-5])$/
|
Description |
It matches an IP address only in the correct format. There was a previous regex send which matches 192.168.01.2 but this code won't match preceeding 0's
|
Matches |
192.168.1.2 | 127.0.0.1
|
Non-Matches |
192.168.01.2 | 1921.68.1.2
|
Author |
Rating:
snabbi
|
Displaying page
of
pages;
Items to