Re: REGEX help!

2004-01-13 Thread Jamie Murray
Thanks for the discussion,clear explanation and advice Glenn. - Original Message - From: "Glenn Linderman" <[EMAIL PROTECTED]> To: "Jamie Murray" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 14, 2004 12:48 AM Subject: Re:

Re: REGEX help!

2004-01-13 Thread Jamie Murray
.$octet\.$octet\.$octet$/o; print "yes" if $ip =~ $valid_ip; - Original Message - From: "Glenn Linderman" <[EMAIL PROTECTED]> To: "Jamie Murray" <[EMAIL PROTECTED]> Cc: "$Bill Luebkert" <[EMAIL PROTECTED]>; <[EMAIL PROTECT

Re: REGEX help!

2004-01-13 Thread Jamie Murray
correct" I'm all for learning and am just trying my best. Thanks! - Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 13, 2004 5:07 AM Subject: Re: REGEX help! > Jamie Murray wrote: > >

Re: REGEX help!

2004-01-13 Thread Jamie Murray
Hey Alex, I jumped a little quick there, the previous post does work but I had a doh moment and forgot your upper range match could only be 254 at most. Sorry about that. if($num =~ /^[0-2][0-5][0-4]\.[0-2][0-5][0-4]\.[0-2][0-5][0-4]\.[0-2][0-5][0-4]$/) after each class [] use {num,num} to adjust

Re: REGEX help!

2004-01-12 Thread Jamie Murray
just a stab starts with any digit(s) = any number of digits or = 0 or 1 or none(?=can be none but at most 1) followed by any 2 numbers = 2 followed by number between 0 and 4 followed by any number = 25 followed by any number between 0 and 5 followed by "." the rest is repeat (I think that cookbo