The latest version of Regexp::Common::net is said to support IPv4 and IPv6 IP addresses, but I cannot say how complete the support is for IPv6. See Regexp::Common for instructions on how to use the net (and other) module extension(s); it's slightly roundabout.
Give a man a fish: <%-{-{-{-<
In reply to Re: Regex to catch IPV4 and IPV6 whenever ip appears withing brackets
by AnomalousMonk
in thread Regex to catch IPV4 and IPV6 whenever ip appears withing brackets
by theravadamonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |