<?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[Looking for a boost regular expression]]></title><description><![CDATA[<p dir="auto">As the title says, I’m looking for a boost regular expression which is unique<br />
in Npp, meaning, that I’m able to identify whether my matching engine<br />
actually used boost regex and not something else.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18287/looking-for-a-boost-regular-expression</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 02:23:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18287.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Sep 2019 21:42:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 18:13:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14">@MAPJe71</a> , <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">yes, that is helpful - thank you very much.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47334</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47334</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 23 Sep 2019 18:13:46 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 17:15:44 GMT]]></title><description><![CDATA[<p dir="auto">Following <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14">@MAPJe71</a> 's lead, it seems like the table <a href="https://www.regular-expressions.info/boost.html" rel="nofollow ugc">here</a> has some nice differentiators between Boost and “std::regex in C++11”, if that is what is meant above by “C 11” (which I presume it is).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47333</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47333</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 23 Sep 2019 17:15:44 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 16:28:17 GMT]]></title><description><![CDATA[<p dir="auto">Maybe <a href="https://www.regular-expressions.info/reference.html" rel="nofollow ugc">this reference</a> helps.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47332</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47332</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Mon, 23 Sep 2019 16:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 12:44:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">Scintilla states</p>
<p dir="auto"><em>Building with an alternative Regular Expression implementation<br />
A simple interface provides support for switching the Regular Expressions engine at compile time. You must implement RegexSearchBase for your chosen engine, look at the built-in implementation BuiltinRegex to see how this is done. You then need to implement the factory method CreateRegexSearch to create an instance of your class. You must disable the built-in implementation by defining SCI_OWNREGEX.</em></p>
<p dir="auto">and now I’m asking myself, if I do a SearchInTarget with the flag SCFIND_REGEXP set, does that mean I’m using already the engine npp uses<br />
or is it the one scintilla offers (afaik, an C11 implementation).</p>
<p dir="auto">I tend to believe that SearchInTarget uses the boost::regex engine instead<br />
of its own implementation because npp uses SCI_OWNREGEX.<br />
Just want to be sure.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47323</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47323</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 23 Sep 2019 12:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 12:35:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said in <a href="/post/47320">Looking for a boost regular expression</a>:</p>
<blockquote>
<p dir="auto">namely the C11-Regex Engine</p>
</blockquote>
<p dir="auto">So there we have it, narrowed down to two:  Boost or C11.</p>
<p dir="auto">Maybe there are some hints for you <a href="https://www.regular-expressions.info/stdregex.html" rel="nofollow ugc">here</a>:</p>
<pre><code class="language-z">...you can use boost::regex instead of std::regex. While std::regex ... defines pretty much the same operations and classes as boost::regex, there are a number of important differences in the actual regex flavor.
</code></pre>
<blockquote>
<p dir="auto">if something else … is jumping in</p>
</blockquote>
<p dir="auto">Obviously you are much closer to what you are doing, but I’m confused about how something like this can “jump in”, without you as the developer know what is going on.</p>
<p dir="auto">Good luck.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47322</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47322</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 23 Sep 2019 12:35:22 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 12:27:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@Terry-R</a> , <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<blockquote>
<p dir="auto">I will cut <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> slack about “As the title says”.</p>
</blockquote>
<p dir="auto">deepL doesn’t translate this correctly, I guess.<br />
It returns something like<br />
<em>Ich werde <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> mit “Wie der Titel sagt” aufhören.</em><br />
I hope it is nothing which makes me feel more feminine after you <strong>cut</strong> … :-D</p>
<p dir="auto">First of all thank you for participating and now you see how desperate I am.  :-)<br />
I was hoping that one found a regex pattern already,<br />
which seems to work for boost::regex but not, or not for many, others.</p>
<p dir="auto">The single open point about migrating everything from PythonScript to my python3 based plugin<br />
is the research and rereplace functions which do use the boost::regex engine instead of the python re module.</p>
<p dir="auto">Now I guess this is solved as well and I wanted to know for sure if this is really the case<br />
or if something else, namely the C11-Regex Engine, is jumping in.</p>
<p dir="auto">I cannot test against the PythonScript functions because I think I’m using the<br />
exact version\configuration Npp uses and in the past we found out that<br />
there are differences so I can’t trust the result.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@Terry-R</a>, thx for the idea but scintilla doesn’t offer a way<br />
to identify which Regex engine is used, at least I haven’t found one.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a>, I searched stackoverflow but found nothing and it looks<br />
there is no boost::regex mailing list but maybe asking on stackoverflow<br />
could be helpful - I should give it a try.</p>
<p dir="auto">I guess the first step is to check C11 Regex to see whether it supports the<br />
same features as boost does with the same syntax.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47320</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47320</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 23 Sep 2019 12:27:06 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 02:33:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said in <a href="/post/47311">Looking for a boost regular expression</a>:</p>
<blockquote>
<p dir="auto">I’m looking for a boost regular expression which is unique<br />
in Npp</p>
</blockquote>
<p dir="auto">I think this would be nearly impossible. If one could get direct access to the boost engine it might be possible but (if I read it all correctly) the engine is included in the Scintilla system which is in turn used by NPP. It would depend on how each layer responds to the regex presented.</p>
<p dir="auto">I suppose the question comes from the possibility of including a different regex engine in Scintilla and wanting to know which one is operational. As for <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> question of how many, Wikipedia lists approximately 30, I dont know how many are compatible with inclusion to Scintilla. Then there will be versioning issues where a later version may well expand on the regex possibilities. It would be like hitting a moving target!</p>
<p dir="auto">If the question is indeed which one Scintilla is using then perhaps a call to one of the MANY scintilla commands might elicit the answer?<br />
<a href="https://www.scintilla.org/ScintillaDoc.html#BuildingScintilla" rel="nofollow ugc">https://www.scintilla.org/ScintillaDoc.html#BuildingScintilla</a><br />
has right at the bottom some references to alternative regex engines when compiling.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47318</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47318</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 23 Sep 2019 02:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Mon, 23 Sep 2019 00:48:12 GMT]]></title><description><![CDATA[<p dir="auto">I will cut <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> slack about “As the title says”.  No problems from this camp.  :)</p>
<p dir="auto">So this might be challenging to find.  Something exclusive to Boost.  Hmmm.  Maybe if it can be narrowed down to knowing how many candidate engines there are it would be easier to find.  So is there like two choices, Boost and something else, or…?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47317</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47317</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 23 Sep 2019 00:48:12 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Sun, 22 Sep 2019 23:50:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> said in <a href="/post/47315">Looking for a boost regular expression</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@Terry-R</a> when you need them?</p>
</blockquote>
<p dir="auto">I’m here, lurking in the shadows. Unfortunately I’m a one regex engine type. I have ONLY cut my teeth on NPP. I’m aware of the other flavours of regex engines but have not parlayed with them so cannot help sorry.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47316</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47316</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 22 Sep 2019 23:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a boost regular expression on Sun, 22 Sep 2019 23:14:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said in <a href="/post/47311">Looking for a boost regular expression</a>:</p>
<blockquote>
<p dir="auto">As the title says,</p>
</blockquote>
<p dir="auto">I’m surprised that one came from you. :-)  It would surprise me a bit more from <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> , who is rather vocal about “the title says it all” and similar… but, still, really?</p>
<p dir="auto">Unfortunately, though I’m tolerable at regex, I’m not an expert on the nuances on the various regex engines, and don’t know of any data/regex pairs that would match in boost but not in any other regex engine.  As much as I hate to send you elsewhere, my recommendation would be to find a group of boost experts and ask there.  Then again, I’m not the only regex guy here.  (Where are <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> and <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@Terry-R</a> when you need them?)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47315</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47315</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 22 Sep 2019 23:14:30 GMT</pubDate></item></channel></rss>