You could either roll your own or use Regexp::Common. http://www.cpan.org/modules/by-module/Regexp/Regexp-Common-0.01.readme
It might look like this... (?:[1]?\d{1,2}|2[0-4]\d|25[0-5]\.){3}[1]?\d{1,2}|2[0-4]\d|25[0-5] ....Or something like that. Rob -----Original Message----- From: Tim Musson [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 8:45 AM To: [EMAIL PROTECTED] Subject: RegEx to match Valid IP Address , I seem to recall a discussion on a RegEx to match an IP address, but can't seem to find it. Anyone have any ideas, or recall what it would be? Or could toss it together? First Octet is 1-255 inclusive, Second Octet is 0-255 inclusive, Third Octet is 0-255 inclusive, Fourth Octet is 1-255 inclusive, So 10.11.12.13 and 10.11.0.13 would match, but 0.11.12.13 and 10.11.12.0 would not. Thanks! -- [EMAIL PROTECTED] Using The Bat! eMail v1.60q Windows 2000 5.0.2195 (Service Pack 2) It is easier to get forgiveness than to get permission. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]