<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[function list - need help with regular expression]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I wanted to have a function list for wiki-files. The wiki-files have the extension “wik” and may look like this:</p>
<pre><code>= header 1 =
 text
== sub header 1 ==
 text
</code></pre>
<p dir="auto">Therefore I added these rows to functionList.xml</p>
<pre><code>..
&lt;association ext=".wik" userDefinedLangName="wiki" id="wiki"/&gt;
..
&lt;/associationMap&gt;
&lt;parsers&gt;
	&lt;parser id="wiki" displayName="wiki"&gt;
		&lt;function 
					mainExpr="^=+.*=+$" 
					displayMode="$functionName"&gt;
			&lt;functionName&gt; 
				&lt;nameExpr expr="^=+.*=+$"/&gt; 
			&lt;/functionName&gt;
		&lt;/function&gt;
	&lt;/parser&gt;
..
</code></pre>
<p dir="auto">After adding these rows the function list in notepad++ from looks this way:</p>
<pre><code>= header 1 = text == sub header 1 == text
</code></pre>
<p dir="auto">It looks to me that the “$” is not used for the first end-of-line but for the last end-of-line.</p>
<p dir="auto">How can I modify my functionList.xml so that I can get a function list which only show the headlines:</p>
<pre><code>= header 1 =
== sub header 1 == 
</code></pre>
<p dir="auto">Thanks,<br />
Christian</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13399/function-list-need-help-with-regular-expression</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 03:26:17 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13399.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Mar 2017 08:34:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to function list - need help with regular expression on Mon, 13 Mar 2017 08:17:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am sorry - I just made a mistake and used the wrong functionList.xml. Now that I am doing it correct</p>
<p dir="auto">&lt;function mainExpr=“^(={1,6})\h+\K(\w| )+(?=\h+\1)”/&gt;</p>
<p dir="auto">is working and shows the correct functions.</p>
<p dir="auto">I can only apologize and thank you for all the help,<br />
Christian</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22637</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22637</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Mon, 13 Mar 2017 08:17:57 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Mon, 13 Mar 2017 07:57:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<ol>
<li>
<p dir="auto">Unix / Ansi is the default at the place I work at. I should have mentioned that.<br />
Now that I think about it - at work I have to use Windows 7 32 bit (please don’t make me explain this *1) and also n++ 32bit.</p>
</li>
<li>
<p dir="auto">Yes I always closed and restarted n++.</p>
</li>
<li>
<p dir="auto">mainExpr=“^Line \d+”&gt;   shows nothing in the Function List (edited functionList.xml, saved, closed n++, started n++, n++ 7.3.2 (32 bit, Build Feb 12 2017) )</p>
</li>
</ol>
<p dir="auto">Then i did some expermenting: Added my initial setup in functionList.xml, changed the test-file to UTF-8 BOM, Windows CR-LF. Result: only the first header is shown (no improvement).<br />
Maybe it has something to do with n++ 32bit ? Later I will try this at home (windows 10, 64 bit).</p>
<p dir="auto">Thanks,<br />
Christian</p>
<p dir="auto">*1 The company I work at believes in putting money in managers and outsourcing. Not in hired software engineers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22635</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22635</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Mon, 13 Mar 2017 07:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Fri, 10 Mar 2017 15:20:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>MAPJe71</strong>,</p>
<p dir="auto">Good question : Absolutely <strong>no</strong> reason, indeed ! The syntaxes <strong><code>(\w| )+</code></strong> and <strong><code>([\w ]+)</code></strong> are <strong>equivalent</strong> !</p>
<p dir="auto">I did a <strong>rapid</strong> test, comparing the <strong>two</strong> S/R, below</p>
<p dir="auto">SEARCH <strong><code>(\w| )</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1\1</code></strong></p>
<p dir="auto">and</p>
<p dir="auto">SEARCH <strong><code>([\w ])</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1\1</code></strong></p>
<p dir="auto">After <strong>722,970</strong> replacements, in <strong>both</strong> cases, your method seems a bit <strong>quicker</strong> than mime : <strong>71s</strong> instead of <strong>73s</strong> for my solution !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22557</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22557</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 10 Mar 2017 15:20:40 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Fri, 10 Mar 2017 13:34:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> is there a specific reason you use <code>(\w| )+</code> instead of <code>[\w ]+</code>?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22552</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22552</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Fri, 10 Mar 2017 13:34:21 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Fri, 10 Mar 2017 11:52:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>Christian 11235</strong>,</p>
<p dir="auto">Thanks for your <strong>two</strong> screenshots. I just noticed that your <strong>.txt</strong> file is an <strong>Unix</strong> file ( with <strong><code>\n</code></strong> End of Line character )<br />
with an <strong>ANSI</strong> encoding. So I changed my <strong>Windows</strong> file, with <strong>UTF8</strong> encoding to test but, of course, this makes <strong>NO</strong> difference. I mean : I did get the <strong>expected</strong> list of sections in the <strong>Function List</strong> panel !</p>
<p dir="auto">So, at first sight, I, really, do <strong>NOT</strong> understand what happens ???. An <strong>idiotic</strong> question, to be sure ! Of course, you may modify and save the <strong>functionList.xml</strong> file from <strong>within</strong> Notepad++. But you need to <strong>close</strong> and <strong>re-start</strong> N++ to get it working !</p>
<hr />
<p dir="auto">Now, could you do an <strong>other</strong> simple test :</p>
<ul>
<li>
<p dir="auto">Use the <strong>SAME</strong> example text, of my <strong>previous</strong> post</p>
</li>
<li>
<p dir="auto">In your <strong>functionList.xml</strong> file, in the <strong>“Wiki”</strong> parser, just change the line :</p>
<pre><code>  mainExpr="^(={1,6})\h+\K(\w| )+(?=\h+\1)"&gt;
</code></pre>
</li>
</ul>
<p dir="auto">by the line, below, which contains a <strong>very simple</strong> regex :</p>
<pre><code>    mainExpr="^Line \d+"&gt;
</code></pre>
<ul>
<li>
<p dir="auto"><strong>Close</strong> and <strong>re-start</strong> N++</p>
</li>
<li>
<p dir="auto">In the <strong>Function List</strong> panel, after selecting the <strong>test</strong> file, you should see the <strong>obvious</strong> list, below !</p>
<p dir="auto">Line 1<br />
Line 2<br />
Line 3<br />
Line 4<br />
Line 5<br />
Line 6<br />
Line 7<br />
Line 8<br />
Line 9<br />
Line 10<br />
line 11<br />
line 12<br />
Line 13<br />
Line 14<br />
Line 15<br />
Line 16<br />
Line 17<br />
Line 18<br />
Line 19<br />
Line 20<br />
Line 21<br />
Line 22<br />
Line 23<br />
Line 24</p>
</li>
</ul>
<p dir="auto">Tested with N++ <strong>v7.2</strong> and N++ <strong>v7.3.2</strong> =&gt; Both <strong>OK</strong></p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22551</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22551</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 10 Mar 2017 11:52:36 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Fri, 10 Mar 2017 08:15:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">@all: thanks a lot for you effort.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mapje71" aria-label="Profile: MAPJe71">@<bdi>MAPJe71</bdi></a>: As the changes show different results I think I edited the right xml file. There are also three languages in my functionsList.xml which I use in daily work - without problems.</p>
<p dir="auto">@uy038:  I copied all your steps - and maybe I have done something wrong - because I don’t see anything.</p>
<p dir="auto">I took two screenshots:</p>
<p dir="auto">This one show the functionsList.xml and the test-file and the resulting function List:</p>
<p dir="auto"><a href="https://www.dropbox.com/s/z1cms3khiqmbe02/npp_screenshot01.jpg?dl=0" rel="nofollow ugc">https://www.dropbox.com/s/z1cms3khiqmbe02/npp_screenshot01.jpg?dl=0</a></p>
<p dir="auto">This screenshot shows the same but the focus is now on the functionList.xml - and there you can see a working functions list (just to proof its working at all).</p>
<p dir="auto"><a href="https://www.dropbox.com/s/1uxii4mqhgw4vwz/npp_screenshot02.jpg?dl=0" rel="nofollow ugc">https://www.dropbox.com/s/1uxii4mqhgw4vwz/npp_screenshot02.jpg?dl=0</a></p>
<p dir="auto">In my functionList.xml are three other languages - for these three languages the function list works.</p>
<p dir="auto">As said - thanks a lot for your effort. Maybe I am doing something wrong - but in the moment I cannot see it.<br />
Christian</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22545</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22545</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Fri, 10 Mar 2017 08:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Fri, 10 Mar 2017 00:03:38 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Christian 11235</strong>, <strong>Claudia</strong>, <strong>MAPJe71</strong> and <strong>All</strong>,</p>
<p dir="auto"><strong>Christian</strong>, I suppose that you’re speaking about the <strong>Wikimarkup</strong>, used in <strong>Wikipedia</strong>, aren’t you ?</p>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/Help:Wiki_markup" rel="nofollow ugc">https://en.wikipedia.org/wiki/Help:Wiki_markup</a></p>
<p dir="auto">For a <strong>rapid</strong> test of your <strong>parser</strong>, you may, simply, use a usual <strong>text</strong> file. You don’t need to create any <strong>UDL</strong> language !</p>
<hr />
<p dir="auto">So, in a <strong>new</strong> tab, add the <strong>test</strong> lines, below :</p>
<pre><code class="language-css">= Header 1 =
Line 1
Line 2
Line 3
== sub header 002 ==
Line 4
Line 5
Line 6
=== sub header_3 ===
Line 7
Line 8
Line 9
==== sub header     4 ====
Line 10
line 11
line 12
===== TEST =====
Line 13
Line 14
Line 15
====== sub header 6 ======
Line 16
Line 17
Line 18
=			Last test  ab___c     d            ==
Line 19
Line 20
Line 21
======= Should NOT be displayed =======
Line 22
Line 23
Line 24
</code></pre>
<ul>
<li>Save it as a <strong>.txt</strong> file</li>
</ul>
<p dir="auto">Then, in your <strong>functionList.xml</strong> file :</p>
<ul>
<li>
<p dir="auto">In the <strong>associationMap</strong> node, add the line :</p>
<p dir="auto">&lt;association langID= “0” id=“wiki_syntax” /&gt;</p>
</li>
<li>
<p dir="auto">And, at the beginning of the <strong>parser</strong> node, add the <strong>parser</strong>, below :</p>
</li>
</ul>
<pre><code>&lt;parser id="wiki_syntax" displayName="wiki"&gt;
    &lt;function
        mainExpr="^(={1,6})\h+\K(\w| )+(?=\h+\1)"&gt;
    &lt;/function&gt;
&lt;/parser&gt;
</code></pre>
<p dir="auto">You should see, in the <strong>Function List</strong> panel, each <strong>header</strong> of the <strong>different</strong> sections of my example:</p>
<pre><code class="language-css">Header 1
sub header 002
sub header_3
sub header     4
TEST
sub header 6
Last test ab___c     d
</code></pre>
<p dir="auto"><strong>NOTES</strong> :</p>
<ul>
<li>
<p dir="auto">In the value of <strong>mainExpr</strong>, there is a <strong>space</strong> between the <strong>alternative</strong> sign <strong><code>|</code></strong> and the <strong>ending</strong> round bracket <strong><code>)</code></strong></p>
</li>
<li>
<p dir="auto">I supposed that a <strong>header</strong>, of a section, is a <strong>non-empty</strong> string, which contains, ONLY :</p>
<ul>
<li>
<p dir="auto">Usual <strong>word</strong> characters ( Upper and lower letters, digits and the underscore _ )</p>
</li>
<li>
<p dir="auto"><strong>Space</strong> characters</p>
</li>
</ul>
</li>
<li>
<p dir="auto">I didn’t consider the <strong>tabulation</strong> character. Indeed, if a <strong>header</strong> is, for instance, the string <strong>A[Tab][Tab][Tab][Tab][Tab]B</strong>, it is, simply, displayed as the string <strong>AB</strong>, in the <strong>FunctionList</strong> panel, anyway !</p>
</li>
</ul>
<p dir="auto">=&gt; The <strong>middle</strong> part of the regex = <strong><code>(\w| )+</code></strong></p>
<ul>
<li>
<p dir="auto">From <strong>beginning</strong> of line, each <strong>section</strong> header :</p>
<ul>
<li>
<p dir="auto">Begins with <strong>one</strong> to <strong>six equal</strong> sign(s), followed by, at least, <strong>one space</strong> character ( =&gt; the <strong>first</strong> part of the regex = <strong><code>^(={1,6})\h+\K</code></strong> )</p>
</li>
<li>
<p dir="auto">Ends with the <strong>same</strong> number of <strong>equal</strong> signs, than, at <strong>beginning</strong> of line, preceded by, at least, <strong>one space</strong> character ( =&gt; the <strong>final</strong> part of the regex = <strong><code>(?=\h+\1)</code></strong> )</p>
</li>
</ul>
</li>
<li>
<p dir="auto">As this regex does NOT use the <strong>dot</strong> character, at all, the <strong>``dot matches new line`</strong> way of search, of the <strong>functionList</strong> feature, doesn’t matter :-))</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22538</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22538</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 10 Mar 2017 00:03:38 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Thu, 09 Mar 2017 13:10:42 GMT]]></title><description><![CDATA[<p dir="auto">Are you applying the changes to the correct <code>functionList.xml</code>?<br />
There might be more then one <code>functionList.xml</code> file on your system.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22504</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22504</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Thu, 09 Mar 2017 13:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Thu, 09 Mar 2017 12:56:29 GMT]]></title><description><![CDATA[<p dir="auto">Sorry - I need to correct me - both expressions show the last header</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22503</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22503</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Thu, 09 Mar 2017 12:56:29 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Thu, 09 Mar 2017 12:11:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">both expressions only show the first header. All headlines after the first header are ignored.</p>
<p dir="auto">My testfile has the name tst.wik and looks like this</p>
<pre><code>= header 1 = 
text 
== sub header 1 == 
text
</code></pre>
<p dir="auto">CU<br />
Christian</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22502</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22502</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Thu, 09 Mar 2017 12:11:53 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Thu, 09 Mar 2017 11:38:40 GMT]]></title><description><![CDATA[<p dir="auto">What about <code>(?m)^=+.*=+$</code> or <code>(?-s)=+.*?=+</code> ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22501</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22501</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Thu, 09 Mar 2017 11:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Thu, 09 Mar 2017 07:03:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">to 1: Yes - I assumed this.<br />
to 2: Yes - this was the case from the beginning.</p>
<p dir="auto">To clarify: the problem ist not that the parsing is not working at all - the problem ist that not all headlines are found. Till now I only have regular expressions which either find</p>
<ul>
<li>the first headline<br />
expr=“(?-s)^=+.*=+$”</li>
<li>all headlines but take them for one headline<br />
expr=“^=+.*=+$”</li>
</ul>
<p dir="auto">Thanks,<br />
Christian</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22494</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22494</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Thu, 09 Mar 2017 07:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Wed, 08 Mar 2017 12:58:21 GMT]]></title><description><![CDATA[<p dir="auto">Function List searches with <code>dot matches newline</code> enabled.</p>
<p dir="auto">Furthermore,</p>
<ol>
<li>the <code>displayName="[TBD] Wiki"</code> should be <code>displayName="Wiki"</code>;</li>
<li>make sure you have defined a “User Defined Language” named <code>Wiki</code> i.e. same value (incl. case) as that of <code>displayName</code>.</li>
</ol>
<p dir="auto"><img src="https://camo.nodebb.org/329a7b4faeafa659d7cb85d075efb30ee6268246?url=https%3A%2F%2Fc1.staticflickr.com%2F1%2F734%2F32939533330_4ceb18b890.jpg" alt="" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/22447</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22447</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Wed, 08 Mar 2017 12:58:21 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Wed, 08 Mar 2017 12:43:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">sorry - with that mainExpr the function list stays empty.</p>
<p dir="auto">One funny thing I realized: when I use my initial expression</p>
<pre><code>^=+.*=+$
</code></pre>
<p dir="auto">in the search dialog then it works - it finds every single row.  Can it be that the parser for the functionList.xml behaves differently than the parser in the search dialog ?</p>
<p dir="auto">Thanks,<br />
Christian</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22446</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Wed, 08 Mar 2017 12:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Wed, 08 Mar 2017 09:26:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian11235" aria-label="Profile: Christian11235">@<bdi>Christian11235</bdi></a> try this parser:</p>
<pre><code class="language-XML">			&lt;parser
				displayName="[TBD] Wiki"
				id         ="wiki_syntax"
			&gt;
				&lt;function
					mainExpr="^=+\h+\K(?:\w+\h+)*\w+(?=\h+=+)"
				/&gt;
			&lt;/parser&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/22443</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22443</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Wed, 08 Mar 2017 09:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Wed, 08 Mar 2017 08:58:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">thanks a lot for your reply. I changed functionList.xml to</p>
<pre><code>&lt;functionName&gt; 
	&lt;nameExpr expr="(?-s)^=+.*=+$"/&gt; 
&lt;/functionName&gt;
</code></pre>
<p dir="auto">and now the Function LIst looks different:</p>
<pre><code>= header 1 =
</code></pre>
<p dir="auto">The first headline looks good, but the next is missing. This is only a short example - in my real file all headers are missing except the first one.</p>
<p dir="auto">Do you have any ideas ?</p>
<p dir="auto">Thanks,<br />
Christian</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22440</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22440</guid><dc:creator><![CDATA[Christian11235]]></dc:creator><pubDate>Wed, 08 Mar 2017 08:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to function list - need help with regular expression on Tue, 07 Mar 2017 15:43:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian11235" aria-label="Profile: Christian11235">@<bdi>Christian11235</bdi></a></p>
<p dir="auto">Yes, per default the function list has set the flag  DOTALL, which means<br />
the dot matches any character at all, including the newline.<br />
To reverse this you might think about using the modifier syntax</p>
<pre><code>"(?-s)^=+.*=+$"
</code></pre>
<p dir="auto">To be honest, I didn’t try it but I hope it works.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22371</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22371</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Tue, 07 Mar 2017 15:43:22 GMT</pubDate></item></channel></rss>