in reply to Parenthesis usage in Regular Expressions
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.
|
|---|