in reply to Re: Precompiling substitution regex
in thread Precompiling substitution regex
['(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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Precompiling substitution regex
by Anonymous Monk on Jul 02, 2014 at 13:48 UTC | |
by Anonymous Monk on Jul 02, 2014 at 14:58 UTC | |
by AnomalousMonk (Archbishop) on Jul 02, 2014 at 21:50 UTC |