You might look at Net::IPv6Addr. If you don;t want to use the module, you could steal the regex/validation code from inside it.
In reply to Re: Regex for IPv6
by BrowserUk
in thread Regex for IPv6
by fuzzyping
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |