If you do it this way, you both avoid the problem and the need for capturing parens, so it's more efficient to boot.
s[(?<=[a-m])(?=[n-z])][5]g;
In reply to Re: Inserting numbers between parenthese matches in regexp
by BrowserUk
in thread Inserting numbers between parenthese matches in regexp
by Melroch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |