in reply to Re^2: how to extract string by possible groupings?
in thread how to extract string by possible groupings?

(?:...) is used for non capturing parentheses. This is useful when you need to regroup a subpattern (for example for an alternation or a quantification), but are not interested in capturing the content in $1, $2, etc.
  • Comment on Re^3: how to extract string by possible groupings?