in reply to To not capture recursive group while collecting certain matches

Use named patterns?
  • Comment on Re: To not capture recursive group while collecting certain matches