467,114 Members | 1,288 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,114 developers. It's quick & easy.

need an outstanding IP regular expression

Expand|Select|Wrap|Line Numbers
  1. \b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
This ip validator matches most of IP addresses I tried, however it also considers as an IP inside 20si10298798agb.38.2008.;

can anybody help me find way to match most ips but ignore the above stupid non-ip string
Sep 17 '08 #1
  • viewed: 1189
1 Reply
Expert 512MB
Have a look at Data::Validate::IP at CPAN.

Sep 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Buddy | last post: by
4 posts views Thread by Neri | last post: by
18 posts views Thread by Q. John Chen | last post: by
7 posts views Thread by Billa | last post: by
3 posts views Thread by Lucky | last post: by
25 posts views Thread by Mike | last post: by
6 posts views Thread by deepak_kamath_n@yahoo.co.in | last post: by
14 posts views Thread by Chris | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.