|
Posted by Ted Zlatanov on March 10, 2008, 10:52 am
Please log in for more thread options
JWK> vikram wrote:
>>> how to read user's IP adress with Perl?
>>
>> (\d)\.(\d)\.(\d)\.(\d)
>>
>> represents the ipaddress.
JWK> 66.94.234.13 is a valid IP address which won't be matched by that pattern.
You should at least mention Regexp::Common if you're correcting an IP
address pattern. I know the original question was not about that, but
it's still better to make a useful reply than just to point out a
counter-example.
Ted
|