Number of capture groups in a regular expression in php
You might consider non-capturing groups 

(?:/*pattern*/)


These will match your regex but won't normally be operated on in whatever code is running the regex you're evaluating.