<?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[Help with the regexes]]></title><description><![CDATA[<p dir="auto">Hi guys, I need a regex or any suggestion for this:</p>
<p dir="auto">I must</p>
<ul>
<li>select all the words that are contained between the terms <strong>(plural of</strong> and <strong>English)</strong> in all the file,</li>
<li>select the lines begenning with the same words</li>
<li>copy each line beside the correspondent (plural of…English)</li>
</ul>
<p dir="auto">Example:</p>
<p dir="auto"><em>finisher n.\n1 A person who finishes or completes something</em><br />
<strong>finishers n.\n(plural of finisher English)</strong><br />
finishes n.\n(plural of finish English)<br />
finishes off vb.\n(en-third-person singular of: finish off)<br />
finishest vb.\n(en-archaic second-person singular of: finish)<br />
finisheth vb.\n(en-archaic third-person singular of: finish)<br />
finishing n.\n1 the act of completing something<br />
finish.\nvb.\n(present participle of finish English)<br />
finishing line n.\n(alternative form of finish line English)<br />
finishing lines n.\n(plural of finishing line English)<br />
<em>finishing move n.\n(context video games English) In media such as…</em><br />
<strong>finishing moves n.\n(plural of finishing move English)</strong><br />
finishing off vb.\n(present participle of finish off English)</p>
<p dir="auto">Later the text must become:</p>
<p dir="auto"><em>finisher n.\n1 A person who finishes or completes something</em><br />
<strong>finishers n.\n(plural of finisher English) n.\n1 A person who finishes or completes something</strong><br />
finishes n.\n(plural of finish English)<br />
finishes off vb.\n(en-third-person singular of: finish off)<br />
finishest vb.\n(en-archaic second-person singular of: finish)<br />
finisheth vb.\n(en-archaic third-person singular of: finish)<br />
finishing n.\n1 the act of completing something<br />
finish.\nvb.\n(present participle of finish English)<br />
<em>finishing line n.\n(alternative form of finish line English)</em><br />
<strong>finishing lines n.\n(plural of finishing line English) n.\n(alternative form of finish line English)</strong><br />
<em>finishing move n.\n(context video games English) In media such as…</em><br />
<strong>finishing moves n.\n(plural of finishing move English)n.\n(context video games English) In media such as…</strong><br />
finishing off vb.\n(present participle of finish off English)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16519/help-with-the-regexes</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 23:06:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16519.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Oct 2018 10:17:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with the regexes on Fri, 04 Jun 2021 11:27:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi guy038 I sent you the email with the file at the andress :</p>
<p dir="auto">Many thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36174</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36174</guid><dc:creator><![CDATA[Giuseppe Pulitanò]]></dc:creator><pubDate>Fri, 04 Jun 2021 11:27:37 GMT</pubDate></item><item><title><![CDATA[Reply to Help with the regexes on Wed, 02 Jun 2021 20:57:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13414">@giuseppe-pulitanò</a>, and <strong>All</strong>,</p>
<p dir="auto">Before <strong>extending</strong> the regex to some <strong>general</strong> cases, it would be better to solve the <strong>present</strong> problem !</p>
<p dir="auto">As for me, I <strong>re</strong>-verified my regex, against your <strong>sample</strong> text, and it’s working <strong>fine</strong> !</p>
<p dir="auto">Note that regexes are <strong>extremely sensitive</strong> to real text ! I mean that a simple <strong>additional</strong> space, somewhere,  may cause the regular expression to <strong>fail</strong> !  So, if your text is neither <strong>personal</strong> nor <strong>confidential</strong>, could you send me, by e-mail, <strong>part</strong> of your text, in order to do <strong>additional</strong> tests ?</p>
<p dir="auto">Thanks</p>
<p dir="auto">See you later,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35827</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35827</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 02 Jun 2021 20:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to Help with the regexes on Mon, 29 Oct 2018 08:09:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said:</p>
<blockquote>
<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13414">@giuseppe-pulitanò</a>, and <strong>All</strong>,</p>
<p dir="auto">Ah, <strong>perfect</strong> ! Even easier to create the <strong>correct</strong> regex as the <strong><code>\t</code></strong> <strong>tabulation</strong> char separates, without any <strong>ambiguity</strong>, each <strong>header</strong> word with its <strong>definition</strong> :-)). So :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H </code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-is)^(.+)\t(.+)\R.+plural of\x20\1\x20English\)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>$0\x20\2</code></strong></p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto"><strong>Tick</strong>, preferably, the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Click, <strong>once</strong>, on the <strong><code>Replace All</code></strong> button or <strong>several</strong> times on the <strong><code>Replace</code></strong> button</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">The search part tries to grab <strong>two</strong> lines where the <strong>header</strong> word of the <strong>first</strong> line, with its <strong>exact</strong> case, is <strong>embedded</strong> in the expression <strong><code>plural ...... English</code></strong> of the <strong>end</strong> of the <strong>second</strong> line, with its <strong>exact</strong> case, too.</p>
</li>
<li>
<p dir="auto">At <strong>beginning</strong>, the part <strong><code>(?-is)</code></strong>  means that :</p>
<ul>
<li>
<p dir="auto">The search is carried on a <strong>non-insensitive</strong> way, <strong><code>(?-i)</code></strong></p>
</li>
<li>
<p dir="auto">The regex engine considers <strong>dot</strong> as any <strong>single standard</strong> character only ( not an <strong>EOL</strong> one ), <strong><code>(?-s)</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Then, the <strong><code>(.+)\t(.+)\R</code></strong> part catches the <strong>first</strong> line, with its <strong>line-break</strong> and stores, as <strong>groups<code>1</code></strong> and <strong><code>2</code></strong>, text which is, either, <strong>before</strong> and <strong>after</strong> the <strong>tabulation</strong> separator <strong><code>\t</code></strong></p>
</li>
<li>
<p dir="auto">And the <strong>final</strong> part <strong><code>.+plural of\x20\1\x20English\)</code></strong> grabs all the <strong>second</strong> line contents with the condition that the <strong>header</strong> word, <strong><code>\1</code></strong>, must be located <strong>between</strong> the expressions <strong><code>plural of </code></strong> and <strong><code> English</code></strong>, with this <strong>exact</strong> case</p>
</li>
<li>
<p dir="auto">In <strong>replacement</strong>, we, first, rewrite these <strong>two</strong> lines, <strong>untouched</strong>, <strong><code>$0</code></strong>, followed with a <strong>space</strong> char, <strong><code>\x20</code></strong> and the <strong>definition</strong> part of the <strong>previous</strong> line, <strong><code>\2</code></strong></p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
</blockquote>
<p dir="auto">I tried it but it doesn’t work…</p>
<p dir="auto">PS: if you find the regex could you give me too the regex for 2 general terms ? For example instead of (plural of …English)  ,    item1   and   item2</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35824</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35824</guid><dc:creator><![CDATA[Giuseppe Pulitanò]]></dc:creator><pubDate>Mon, 29 Oct 2018 08:09:28 GMT</pubDate></item><item><title><![CDATA[Reply to Help with the regexes on Sat, 27 Oct 2018 12:26:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13414">@giuseppe-pulitanò</a>, and <strong>All</strong>,</p>
<p dir="auto">Ah, <strong>perfect</strong> ! Even easier to create the <strong>correct</strong> regex as the <strong><code>\t</code></strong> <strong>tabulation</strong> char separates, without any <strong>ambiguity</strong>, each <strong>header</strong> word with its <strong>definition</strong> :-)). So :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H </code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-is)^(.+)\t(.+)\R.+plural of\x20\1\x20English\)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>$0\x20\2</code></strong></p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto"><strong>Tick</strong>, preferably, the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Click, <strong>once</strong>, on the <strong><code>Replace All</code></strong> button or <strong>several</strong> times on the <strong><code>Replace</code></strong> button</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">The search part tries to grab <strong>two</strong> lines where the <strong>header</strong> word of the <strong>first</strong> line, with its <strong>exact</strong> case, is <strong>embedded</strong> in the expression <strong><code>plural ...... English</code></strong> of the <strong>end</strong> of the <strong>second</strong> line, with its <strong>exact</strong> case, too.</p>
</li>
<li>
<p dir="auto">At <strong>beginning</strong>, the part <strong><code>(?-is)</code></strong>  means that :</p>
<ul>
<li>
<p dir="auto">The search is carried on a <strong>non-insensitive</strong> way, <strong><code>(?-i)</code></strong></p>
</li>
<li>
<p dir="auto">The regex engine considers <strong>dot</strong> as any <strong>single standard</strong> character only ( not an <strong>EOL</strong> one ), <strong><code>(?-s)</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Then, the <strong><code>(.+)\t(.+)\R</code></strong> part catches the <strong>first</strong> line, with its <strong>line-break</strong> and stores, as <strong>groups<code>1</code></strong> and <strong><code>2</code></strong>, text which is, either, <strong>before</strong> and <strong>after</strong> the <strong>tabulation</strong> separator <strong><code>\t</code></strong></p>
</li>
<li>
<p dir="auto">And the <strong>final</strong> part <strong><code>.+plural of\x20\1\x20English\)</code></strong> grabs all the <strong>second</strong> line contents with the condition that the <strong>header</strong> word, <strong><code>\1</code></strong>, must be located <strong>between</strong> the expressions <strong><code>plural of </code></strong> and <strong><code> English</code></strong>, with this <strong>exact</strong> case</p>
</li>
<li>
<p dir="auto">In <strong>replacement</strong>, we, first, rewrite these <strong>two</strong> lines, <strong>untouched</strong>, <strong><code>$0</code></strong>, followed with a <strong>space</strong> char, <strong><code>\x20</code></strong> and the <strong>definition</strong> part of the <strong>previous</strong> line, <strong><code>\2</code></strong></p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35790</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35790</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 27 Oct 2018 12:26:11 GMT</pubDate></item><item><title><![CDATA[Reply to Help with the regexes on Sat, 27 Oct 2018 08:34:39 GMT]]></title><description><![CDATA[<p dir="auto">It is a TABfile dictionary; each entry is followed by a TAB caracter:</p>
<p dir="auto">wordTABdefinition</p>
<p dir="auto">So it is:</p>
<p dir="auto"><em>finisherTABn.\n1 A person who finishes or completes something</em><br />
<strong>finishersTABn.\n(plural of finisher English)</strong><br />
finishesTABn.\n(plural of finish English)<br />
finishes offTABvb.\n(en-third-person singular of: finish off)<br />
finishestTABvb.\n(en-archaic second-person singular of: finish)<br />
finishethTABvb.\n(en-archaic third-person singular of: finish)<br />
finishingTABn.\n1 the act of completing something<br />
finishTAB.\nvb.\n(present participle of finish English)<br />
finishing lineTABn.\n(alternative form of finish line English)<br />
finishing linesTABn.\n(plural of finishing line English)<br />
<em>finishing moveTABn.\n(context video games English) In media such as…</em><br />
<strong>finishing movesTABn.\n(plural of finishing move English)</strong><br />
finishing offTABvb.\n(present participle of finish off English)</p>
<p dir="auto">Later the text must become:</p>
<p dir="auto"><em>finisherTABn.\n1 A person who finishes or completes something</em><br />
<strong>finishersTABn.\n(plural of finisher English) n.\n1 A person who finishes or completes something</strong><br />
finishesTABn.\n(plural of finish English)<br />
finishes offTABvb.\n(en-third-person singular of: finish off)<br />
finishestTABvb.\n(en-archaic second-person singular of: finish)<br />
finishethTABvb.\n(en-archaic third-person singular of: finish)<br />
finishingTABn.\n1 the act of completing something<br />
finishTAB.\nvb.\n(present participle of finish English)<br />
finishing lineTABn.\n(alternative form of finish line English)<br />
finishing linesTABn.\n(plural of finishing line English) n.\n(alternative form of finish line English)<br />
<em>finishing moveTABn.\n(context video games English) In media such as…</em><br />
<strong>finishing movesTABn.\n(plural of finishing move English)n.\n(context video games English) In media such as…</strong><br />
finishing offTABvb.\n(present participle of finish off English)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35786</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35786</guid><dc:creator><![CDATA[Giuseppe Pulitanò]]></dc:creator><pubDate>Sat, 27 Oct 2018 08:34:39 GMT</pubDate></item><item><title><![CDATA[Reply to Help with the regexes on Fri, 26 Oct 2018 20:30:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13414">@giuseppe-pulitanò</a>, and <strong>All</strong>,</p>
<p dir="auto">Before giving you a <strong>regex</strong> solution, I noticed a <strong>particularity</strong>, in your text. ! Examining some of your lines, for example :</p>
<pre><code class="language-z">finisher n.\n1
finishing line n.\n
finishing off vb.\n
</code></pre>
<p dir="auto">We deduce that a <strong>word</strong> ( like <strong><code>finisher</code></strong> ) OR a <strong>group</strong> of words ( like <strong><code>finishing off</code></strong> ) are <strong>always</strong> followed with a <strong>space</strong> character …  … except for the line, beginning with <strong><code>finish.\nvb.\n......</code></strong>, where a <strong>dot</strong> immediately follows the word <strong><code>finish</code></strong> !</p>
<p dir="auto">Is this syntax <strong>common</strong> in your definitions ?  Or that <strong>particular</strong> line should be written <strong><code>finish .\nvb.\n......</code></strong> or even <strong><code>finish ???.\nvb.\n......</code></strong>, where <strong><code>???</code></strong> represents an <strong>abbreviation</strong> ?</p>
<p dir="auto">See you later,</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35782</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35782</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 26 Oct 2018 20:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Help with the regexes on Fri, 26 Oct 2018 10:54:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
The first is relatively easy :<br />
plural of.*English</p>
<p dir="auto">I will search for the rest a bit later.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35757</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35757</guid><dc:creator><![CDATA[Tom Saury]]></dc:creator><pubDate>Fri, 26 Oct 2018 10:54:32 GMT</pubDate></item></channel></rss>