Re: Regular Expression for IPv6 addresses

2010-02-19 Thread Phil Pennock
On 2010-02-04 at 17:50 -0500, Richard E. Brown wrote: > My company, Dartware, have derived a regex for testing whether an IPv6 > address > is correct. I've posted it in my blog: > > http://intermapper.ning.com/profiles/blogs/a-regular-expression-for-ipv6 > > This has links to the regular

Re: Regular Expression for IPv6 addresses

2010-02-09 Thread Valdis . Kletnieks
On Wed, 10 Feb 2010 09:12:11 +1100, Mark Andrews said: > In message , > Thomas > Habets writes: > > On Fri, 5 Feb 2010, Mark Andrews wrote: > > > And now for the trick question. Is :::077.077.077.077 a legal > > > mapped address and if it, does it match 077.077.077.077? > > > > Forget IPv6.

Re: Regular Expression for IPv6 addresses

2010-02-09 Thread Mark Andrews
In message , Thomas Habets writes: > On Fri, 5 Feb 2010, Mark Andrews wrote: > > And now for the trick question. Is :::077.077.077.077 a legal > > mapped address and if it, does it match 077.077.077.077? > > Forget IPv6. The first question is does 077.077.077.077 match > 077.077.077.077 in

Re: Regular Expression for IPv6 addresses

2010-02-09 Thread Thomas Habets
On Fri, 5 Feb 2010, Mark Andrews wrote: And now for the trick question. Is :::077.077.077.077 a legal mapped address and if it, does it match 077.077.077.077? Forget IPv6. The first question is does 077.077.077.077 match 077.077.077.077 in IPv4? The answer is a long one full of differen

Re: Regular Expression for IPv6 addresses

2010-02-06 Thread Mark Andrews
In message <6eb799ab1002061452s51f9cf61p303d36130291...@mail.gmail.com>, James Hess writes: > On Fri, Feb 5, 2010 at 12:15 AM, wrote: > >> > And now for the trick question. =A0Is :::077.077.077.077 a legal > >> > mapped address and if it, does it match 077.077.077.077? > > Wasn't there an

Re: Regular Expression for IPv6 addresses

2010-02-06 Thread James Hess
On Fri, Feb 5, 2010 at 12:15 AM, wrote: >> > And now for the trick question.  Is :::077.077.077.077 a legal >> > mapped address and if it, does it match 077.077.077.077? Wasn't there an internet draft on that subject, recently? http://tools.ietf.org/html/draft-ietf-6man-text-addr-representa

Re: Regular Expression for IPv6 addresses

2010-02-06 Thread Richard E. Brown
Folks, Thanks for all the comments on the IPv6 regex... - Jeroen Massar wrote: The only proper way of "testing" if an address is a valid IPv6 address is to feed it to getaddrinfo() and then use it through that API. Good point. One of the reasons to do this was for environments where

Re: Regular Expression for IPv6 addresses

2010-02-05 Thread isabel dias
I Just Don't Know What To Do With Myself - Original Message From: Jeroen Massar To: Mark Andrews Cc: nanog@nanog.org; Richard E. Brown Sent: Fri, February 5, 2010 1:16:53 AM Subject: Re: Regular Expression for IPv6 addresses Mark Andrews wrote: [..] > And now for the trick

Re: Regular Expression for IPv6 addresses

2010-02-04 Thread sthaug
> > And now for the trick question. Is :::077.077.077.077 a legal > > mapped address and if it, does it match 077.077.077.077? > > :::0:0:0:0/96 should never ever be shown to a user, as it is > confusing (is it IPv6 or IPv4?) and does not make sense at all. > As such whatever one thinks o

Re: Regular Expression for IPv6 addresses

2010-02-04 Thread Mark Andrews
In message <4b6b7185.2080...@spaghetti.zurich.ibm.com>, Jeroen Massar writes: > Mark Andrews wrote: > [..] > > And now for the trick question. Is :::077.077.077.077 a legal > > mapped address and if it, does it match 077.077.077.077? > > :::0:0:0:0/96 should never ever be shown to a user

Re: Regular Expression for IPv6 addresses

2010-02-04 Thread Jeroen Massar
Mark Andrews wrote: [..] > And now for the trick question. Is :::077.077.077.077 a legal > mapped address and if it, does it match 077.077.077.077? :::0:0:0:0/96 should never ever be shown to a user, as it is confusing (is it IPv6 or IPv4?) and does not make sense at all. As such whatever

Re: Regular Expression for IPv6 addresses

2010-02-04 Thread Mark Andrews
In message <4b6b66ff.50...@spaghetti.zurich.ibm.com>, Jeroen Massar writes: > Richard E. Brown wrote: > > Folks, > >=20 > > My company, Dartware, have derived a regex for testing whether an IPv6 > > address is correct. I've posted it in my blog: > >=20 > > http://intermapper.ning.com/profiles/

Re: Regular Expression for IPv6 addresses

2010-02-04 Thread Jeroen Massar
Richard E. Brown wrote: > Folks, > > My company, Dartware, have derived a regex for testing whether an IPv6 > address is correct. I've posted it in my blog: > > http://intermapper.ning.com/profiles/blogs/a-regular-expression-for-ipv6 > > > This has links to the regular expression, a (Perl)