|No such thing as a small change|
Re: Regexp to match IP addressby dsb (Chaplain)
|on Aug 06, 2004 at 14:31 UTC||Need Help??|
Where's japhy when you need 'em. :)
I guess it kind of depends on how concerned you are with the validity of your data. Testing for 4 1-3 digit numbers seperated by dots is easy:
If you are interested making sure IP's are valid, you could do a couple of things.
One, using the above regex, you could grab the digits and test them individually.
Or you could use a more complicated regex to test for validity during the pattern matching. From O'Reilly's Mastering Regular Expressions:
UPDATE: I just realized this was my 150th post. Yay for me. :)
This @ISA my cool %SIG