PS> It's simply a matter of how pedantic you wish to be.  The example you
PS> pasted is not a valid IP address (maximum component value is 255).

You didn't read my words carefully, it was "I think it's better to match
the IP first, split /\./ it to four digits and check if their combination is
legal"
The complete test logic will be extremely difficult to express using regex.


Reply via email to