You can use a postponed subexpression replacing It's flagged as "experimental" - that may affect your choice to use it.
That would certainly work -- and I don't have a problem with it being "experimental"; as far as I have observed it hasn't changed in all the years it has been there and I'm already having to where I need recursive regex -- but I prefer to avoid it if there is a less performance sapping alternative.
In reply to Re^2: Named capture backreferences cannot be used in character classes?
by BrowserUk
in thread Named capture backreferences cannot be used in character classes?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |