help parsing ipv6 addresses and subnets

Hyuga hyugaricdeau at
Thu Nov 8 20:22:56 CET 2007

On Nov 8, 3:11 am, Thorsten Kampe <thors... at> 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:
> &submit=search

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 mailing list