in reply to Re: Regex to catch IPV4 and IPV6 whenever ip appears withing brackets
in thread Regex to catch IPV4 and IPV6 whenever ip appears withing brackets

If a group could contain an inner parenthesized group then you may wish to use greedy patterns instead.
  • Comment on Re^2: Regex to catch IPV4 and IPV6 whenever ip appears withing brackets

Replies are listed 'Best First'.
Re^3: Regex to catch IPV4 and IPV6 whenever ip appears withing brackets
by BillKSmith (Monsignor) on Jul 10, 2018 at 20:39 UTC
    If this is an issue, I would prefer to use Regexp::Common::Balanced.
    Bill