• Hi all,
    Is it possible to use regexp match groups in language statements?
    I have a strings like

    *A:R2>config>filter>ip-filter>entry$ match protocol "tcp"
    *A:R2>config>filter>ip-filter# info

    and I want to highlight just the remaining after the $ sign on line 1
    and after the # sign on line 2

    I use a regexp which goes like this
    \*??[AB]:.*?[#$]\s(.+?\n)
    specifying that I need to match just the group in brackets. But I end up with the whole strings matched.

    https://www.ads-software.com/plugins/crayon-syntax-highlighter/

  • The topic ‘How to use match groups in language regexp?’ is closed to new replies.