RE: RegEx to match Valid IP Address

2002-06-14 Thread Mat Harris
more important than knowledge. Knowledge is limited. >Imagination encircles the world." -- Albert Einstein [1879-1955] > > >-Original Message- >From: Mat Harris [mailto:[EMAIL PROTECTED]] >Sent: Friday, June 14, 2002 2:59 PM >To: Tim Musson; [EMAIL PROTECTED] >Subjec

RE: RegEx to match Valid IP Address

2002-06-14 Thread Jason Frisvold
[mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 2:59 PM To: Tim Musson; [EMAIL PROTECTED] Subject: Re: RegEx to match Valid IP Address ok, maybe that is ok but I recently was told by a networking engineer that the last octet _shouldn't_ be 255. the first 3 can be i think. At 14:34 14/06/20

Re: RegEx to match Valid IP Address

2002-06-14 Thread Mat Harris
ok, maybe that is ok but I recently was told by a networking engineer that the last octet _shouldn't_ be 255. the first 3 can be i think. At 14:34 14/06/2002 -0400, Tim Musson wrote: >Hey Mat, > >My MUA believes you used NeoMail 1.25 >to write the following on Friday, June 14, 2002 at 9:04:54 AM

Re: RegEx to match Valid IP Address

2002-06-14 Thread drieux
On Friday, June 14, 2002, at 11:34 , Tim Musson wrote: > Hey Mat, > > My MUA believes you used NeoMail 1.25 > to write the following on Friday, June 14, 2002 at 9:04:54 AM. > > MH> actually, it should only be 1-254 inclusive as 255 is reserved for > MH> broadcast or other special addresses (some

Re: RegEx to match Valid IP Address

2002-06-14 Thread Tim Musson
Hey Mat, My MUA believes you used NeoMail 1.25 to write the following on Friday, June 14, 2002 at 9:04:54 AM. MH> actually, it should only be 1-254 inclusive as 255 is reserved for MH> broadcast or other special addresses (sometimes not used atall). MH> oficially the 255 node it ignored. I don'

Re: RegEx to match Valid IP Address

2002-06-14 Thread drieux
On Friday, June 14, 2002, at 06:04 , Mat Harrison wrote: [..] > actually, it should only be 1-254 inclusive as 255 is reserved for > broadcast or other special addresses (sometimes not used atall). > oficially the 255 node it ignored. that is actually a "dangerous" assertion to make. Since it ba

Re: RegEx to match Valid IP Address

2002-06-14 Thread Mat Harrison
actually, it should only be 1-254 inclusive as 255 is reserved for broadcast or other special addresses (sometimes not used atall). oficially the 255 node it ignored. > , > > I seem to recall a discussion on a RegEx to match an IP address, but > can't seem to find it. Anyone have any idea

RE: RegEx to match Valid IP Address

2002-06-14 Thread Hanson, Robert
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 Muss