It's also worth noting that some of us have the habit of using (?: ... ) for parentheses which aren't actually going to capture anything into $1, $2 etc.
This helps make it clearer what's actually going to be returned as 'It's the stuff in the normal brackets', whilst allowing the grouping effect you need here.
In reply to Re: Parenthesis usage in Regular Expressions
by Molt
in thread Parenthesis usage in Regular Expressions
by WarrenBullockIII
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |