help parsing ipv6 addresses and subnets
hyugaricdeau at gmail.com
Thu Nov 8 20:22:56 CET 2007
On Nov 8, 3:11 am, Thorsten Kampe <thors... at thorstenkampe.de> wrote:
> * Prabhu Gurumurthy (Wed, 07 Nov 2007 22:34:14 -0800)
> > I would like to parse IPv6 addresses and subnet using re module in
> > python.
> Just don't:http://pypi.python.org/pypi?%3Aaction=search&term=ipv6
And even if you do end up doing the IPv6 parsing yourself (which you
shouldn't), regular expressions would be the wrong approach--there's
no way an RE can deal with replacing a :: with the correct number of
zeroes, among other complications.
More information about the Python-list