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 reply to Re: Regexp to match IP address
by integral
in thread Regexp to match IP address
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |