planetp planetp - 2 years ago 113
Perl Question

What regex can I use to match any valid IP-address represented in dot-decimal notation?

What regex can I use to match any valid IP-address represented in dot-decimal notation?

Answer Source

CPAN is your friend: Regex::Common or Net::IP::Match::Regexp.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download