[122056] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Regular Expression for IPv6 addresses

daemon@ATHENA.MIT.EDU (Richard E. Brown)
Thu Feb 4 17:52:36 2010

Date: 04 Feb 2010 17:50:35 -0500
From: Richard.E.Brown@dartware.com (Richard E. Brown)
To: nanog@nanog.org
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

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) program that tests various  
correct and malformed addresses, and a Ruby implementation of the same.

Hope it's useful.

Rich Brown                    richard.e.brown@dartware.com
Dartware, LLC                 http://www.dartware.com
66-7 Benning Street           Telephone: 603-643-9600
West Lebanon, NH 03784-3407   Fax: 603-643-2289


home help back first fref pref prev next nref lref last post