1 Nov
2012
1 Nov
'12
10:27 a.m.
Hi Owen,
You really shouldn't need to parse these and it's perfectly valid to reject them as invalid input. This really is an output only format [...]
I don't agree. I think it's actually the other way around. It's a valid representation of an IPv6 address so you be able to parse them. You don't need to be able to output them though.
Finally, at this point, if you're feeling like you have to write your own IP address parser, you're probably doing something wrong. PLEASE PLEASE PLEASE use the standard libraries whenever possible.
Definitely +1 here! Sander