Re: [gedit-list] gedit gtksourceview regex flavour?



On Thu, 2014-06-26 at 09:06 +0000, B rock wrote:
    <context id="myregex" style-ref="myregexstyle">
        <match>(?<=foo)bar</match>
    </context>
                                          
You must write < as &lt;, like:

<match>(?&lt;=foo)bar</match>

You can also have a simpler regex:

<match>foo(bar)</match>

and apply the style only to "bar".

--
Sébastien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]