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

Excellent! I couldn't figure out the "substr" part in the online examples I was seeing, and this particular issue seemed to have an added twist at that. This was what I needed to see. I begin to understand, now, what the "substr" is doing.

Thank you.

Blessings,

~Polyglot~

  • Comment on Re^2: Highlighting only captured groups from larger regex

Replies are listed 'Best First'.
Re^3: Highlighting only captured groups from larger regex
by LanX (Saint) on Dec 13, 2022 at 12:29 UTC
    > 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