in reply to Re^2: Highlighting only captured groups from larger regex
in thread Highlighting only captured groups from larger regex

> I couldn't figure out the "substr" part in the online examples

please note that you can alternatively use the substr function as an lvalue

substr EXPR,OFFSET,LENGTH = REPLACEMENT

which should be easier to figure out.

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery