['(robert|bobby)', 'bob']
Your example regex has a capture group, but the subsequent substitution doesn't seem to offer any opportunity to use what was captured. Is there any reason for capturing?
In reply to Re^2: Precompiling substitution regex
by AnomalousMonk
in thread Precompiling substitution regex
by FreakyGreenLeaky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |