Title: Needs ^ and $, remove trailing space
Name: Bob Altman
Date: 4/16/2007 6:58:24 PM
This expression will match "abc188.8.131.52xyz", which probably isn't desireable. Simply add ^ and $ to the expression:
Also, the posted pattern has a trailing space, which caused me a few minutes of grief when I copied and pasted it into a control in my application that accepts a pattern and doesn't display the trailing space.
Title: No good deed goes unpunished
Name: David Tersigni
Date: 9/10/2003 2:38:10 PM
I did say in the description that it DID NOT validate the address. It will match all valid addresses. unfortunaly it will also match incorrect numbers that look like dotted decimal addresse....
If you have any construstive comments and suggestions please do not hesitate to pipe in.
We may all learn from it.... isn't what this forum is for?
Title: So the patter is useless then...
Name: Robert Lee
Date: 9/7/2003 7:25:16 PM
It would match 999.999.999.999. That's an issue and makes the pattern useless.
How would you go about capping such a 3-digit number at an arbitrary value (like 255) in reg exp anyways?
Title: No no no
Date: 9/5/2003 11:15:26 PM
No it isn't.
An IP address (in the currently in use IPv4 format) is composed of four numbers, each reaching from 0 to 255.
So, 0.0.0.0 or 255.255.255.255 are valid addresses, but your isn't.
Title: A bit useless.
Date: 9/5/2003 8:31:11 AM
999.999.999.999 is a valid IP address is it?