|
|
| more useful options | |
| PerlMonks |
Re^2: Don't Use Regular Expressions To Parse IP Addresses!by Anonymous Monk |
| on Nov 08, 2007 at 00:07 UTC ( #649598=note: print w/ replies, xml ) | Need Help?? |
|
Not really - the above regex is wrong. Try it on 10.76.110.219 and it will match only 10.76.110.21 (since 1?\d\d? will match 21 and stop and not look for the 2[0-4]\d rule)
In Section
Tutorials
|
|
||||||||||||||||||||||