You should be able to use @- and @+ to find the text that matched - these have been around since 5.004 or so :)
In reply to Re: Highlighting only captured groups from larger regex
by Corion
in thread Highlighting only captured groups from larger regex
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |