in reply to Regexp to match IP address
As well writing a (large) regexp yourself, there's Regexp::Common::net which packages up a regexp for matching ipv4 addresses.
(It uses a similar regexp to dsb's and mawe's above.)
--
integral, resident of freenode's #perl
|
---|
In Section
Seekers of Perl Wisdom