Thanks for pattern and its explanation. That way is a lot simpler and gets the desired result.
I had not known that capture groups could be nested like that, nor non-capture markers either.
In reply to Re^2: Regular expression for finding acronyms
by mldvx4
in thread Regular expression for finding acronyms
by mldvx4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |