<?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[How to find words with 12 or more alphabets that are between a  and ]]></title><description><![CDATA[<p dir="auto">Block of text for testing:-<br />
&lt;div class=“right”&gt;<br />
&lt;ol&gt;<br />
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: "verdana"; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/div&gt;&lt;/li&gt;<br />
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: "verdana"; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/div&gt;&lt;/li&gt;<br />
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: "verdana"; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;Offensive haemorrhages&lt;/div&gt;&lt;/li&gt;<br />
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: "verdana"; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/div&gt;&lt;/li&gt;<br />
&lt;/ol&gt;<br />
I tried this Regular expression to no avail:-</p>
<pre><code>&lt;li style[^&lt;&gt;]*+&gt;.*([a-z][a-z][a-z][a-z][a-z][a-z][a-z][a-z][a-z][a-z][a-z][a-z]).*&lt;/li&gt;
</code></pre>
<p dir="auto">Haemorrhoids, haemorrhages, CONSCIOUSNESS  and Hysterically should all be found/matched (the search should be case insensitive). Every other word with 12 or more alphabets should also be found/matched. Notice that I have put it in a capturing group for replacement</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26414/how-to-find-words-with-12-or-more-alphabets-that-are-between-a-li-style-and-li</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 14:02:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26414.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Nov 2024 05:29:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Thu, 12 Dec 2024 16:21:18 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> Oui, merci beaucoup!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98503</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98503</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Thu, 12 Dec 2024 16:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Thu, 12 Dec 2024 15:34:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, I don’t think that your <strong>old</strong> version was a problem, regarding the <strong>results</strong> of these regexes !</p>
<p dir="auto">You said, in your <strong>last</strong> post :</p>
<blockquote>
<p dir="auto">The RegEx <code>(?-si:&lt;span style=|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code> does not stop searching/finding matches of words with 12 or more letters/alphabets after a &lt;/span&gt; …</p>
</blockquote>
<p dir="auto">Sorry to <strong>contradict</strong> you but, given your <em>INPUT</em> text, below :</p>
<pre><code class="language-html">&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Offensive haemorrhages&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/span&gt;
&lt;p style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Confirmatory symptoms&lt;/p&gt;
&lt;ol&gt;&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;REMEDY RELATIONSHIPS&lt;/li&gt;&lt;/ol&gt;
</code></pre>
<p dir="auto">My regex <em>DOES</em> find the <strong>five</strong> words <strong><code>Haemorrhoids</code></strong>, <strong><code>Haemorrhoids</code></strong>, <strong><code>haemorrhages</code></strong>, <strong><code>CONSCIOUSNESS</code></strong> and <strong><code>Hysterically</code></strong>, as well as the <strong>two</strong> other regexes you mentionned !</p>
<p dir="auto">But, as I said in my <strong>previous</strong> post, this syntax <strong>only</strong> works if the <strong>BSR</strong> region and <strong>all</strong> the matching words lie in the <strong>current</strong> line, before an other <strong><code>&lt;span style=</code></strong> syntax <strong>beginning</strong> the <strong>next</strong> line</p>
<hr />
<p dir="auto">Now, let’s use this new <em>INPUT</em> text, pasted in a <strong>new</strong> tab, where I added some <strong><code>HTML</code></strong> paragraphs, after the <strong><code>&lt;/span&gt;</code></strong> tag of <strong>each</strong> line</p>
<pre><code class="language-html">&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/span&gt; &lt;p&gt;The words abbreviation and fabrications are long&lt;/p&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/span&gt; &lt;p&gt;This radioacoustics&lt;/p&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Offensive haemorrhages&lt;/span&gt; &lt;p&gt;Words nanofabrications and calligraphically contains 16 letters&lt;/p&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/span&gt; &lt;p&gt;Echocardiographies and Neovascularization&lt;/p&gt;
&lt;p style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Confirmatory symptoms&lt;/p&gt;
&lt;ol&gt;&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;REMEDY RELATIONSHIPS&lt;/li&gt;&lt;/ol&gt;
</code></pre>
<p dir="auto">This time, we <strong>cannot</strong> apply the same regex as some words, located <strong>after</strong> <strong><code>&lt;/span&gt;</code></strong> would also be <strong>detected</strong> !</p>
<p dir="auto">Indeed, the additional words <strong><code>abbreviation</code></strong>, <strong><code>facrications</code></strong>, <strong><code>radioacoustics</code></strong>, <strong><code>nanofabrications</code></strong>, <strong><code>calligraphically</code></strong>, <strong><code>Echocardiographies</code></strong> and <strong><code>Neovascularization</code></strong>  are <strong>not</strong> wanted !</p>
<p dir="auto">Thus, we must use the <strong>first</strong> form of my <strong>generic</strong> regex, described in this post :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/topic/22690/generic-regex-replacing-in-a-specific-zone-of-text/1">https://community.notepad-plus-plus.org/topic/22690/generic-regex-replacing-in-a-specific-zone-of-text/1</a></p>
<p dir="auto">SEARCH <strong><code>(?-si:</code>BSR<code>|(?!\A)\G)(?s-i:(?!</code>ESR<code>).)*?\K(?-si:</code>FR<code>)</code></strong></p>
<p dir="auto">With :</p>
<p dir="auto"><strong>BSR</strong> = <strong><code>&lt;span style=</code></strong></p>
<p dir="auto"><strong>ESR</strong> = <strong><code>&lt;/span&gt;</code></strong></p>
<p dir="auto"><strong>FR</strong> = <strong><code>\b[a-z]{12,}\b</code></strong></p>
<p dir="auto">Leading to this <strong>functional</strong> regex :</p>
<p dir="auto">SEARCH <strong><code>(?-si:&lt;span style=|(?!\A)\G)(?s-i:(?!&lt;/span&gt;).)*?\K(?i:\b[a-z]{12,}\b)</code></strong></p>
<p dir="auto"><strong>Remark</strong> : I also changed the part <strong><code>(?-si:</code></strong>, before <strong>FR</strong>, by simply <strong><code>(?i:</code></strong>, in order to find any word of more than <strong><code>11</code></strong> letters <strong>whatever</strong> its case !</p>
<p dir="auto">And again, it would just match the <strong>five</strong> words <strong><code>Haemorrhoids</code></strong>, <strong><code>Haemorrhoids</code></strong>, <strong><code>haemorrhages</code></strong>, <strong><code>CONSCIOUSNESS</code></strong> and <strong><code>Hysterically</code></strong>, which come <em>BEFORE</em> <strong><code>&lt;/span&gt;</code></strong> :-))</p>
<hr />
<p dir="auto">Now, let’s get back to your <strong>original</strong> <em>INPUT</em> text, where I simply changed the name of the <strong>font</strong> by an other name with <strong>more</strong> than <strong><code>11</code></strong> letters : the <strong><code>DejaVuSansMono</code></strong> font !</p>
<pre><code class="language-html">&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “DejaVuSansMono”; font-size: 18px; color: black;”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “DejaVuSansMono”; font-size: 18px; color: black;”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “DejaVuSansMono”; font-size: 18px; color: black;”&gt;Offensive haemorrhages&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “DejaVuSansMono”; font-size: 18px; color: black;”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/span&gt;
&lt;p style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Confirmatory symptoms&lt;/p&gt;
&lt;ol&gt;&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;REMEDY RELATIONSHIPS&lt;/li&gt;&lt;/ol&gt;
</code></pre>
<p dir="auto">If I use the <strong>last</strong> regex of my <strong>previous</strong> post :</p>
<p dir="auto"><strong><code>(?-si:&lt;span style=|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code></strong></p>
<p dir="auto">Against the <em>INPUT</em> text just above, it would <strong>wrongly</strong> match the <strong>name</strong> of the font, <strong>four</strong> times :-((</p>
<p dir="auto">We can solve this problem by changing the <strong>BSR</strong> search region ! Instead of <strong><code>&lt;span style=</code></strong>, we’ll rather use <strong><code>&lt;span style=.+?&gt;</code></strong></p>
<p dir="auto">Hence, this <strong>new</strong> version :</p>
<p dir="auto"><strong><code>(?-si:&lt;span style=.+?&gt;|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code></strong></p>
<p dir="auto">Or this one :</p>
<p dir="auto"><strong><code>(?-si:&lt;span style=.+?&gt;|(?!\A)\G)(?s-i:(?!&lt;/span&gt;).)*?\K(?i:\b[a-z]{12,}\b)</code></strong>, in case of <strong>possible</strong> words after <strong><code>&lt;/span&gt;</code></strong> and/or <strong>multi</strong>-lines results</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98501</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98501</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 12 Dec 2024 15:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Thu, 12 Dec 2024 12:13:28 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> <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> It looks like I was using an old, earlier version of Notepad++. I have now installed the v8.7.4 (32 bit) version of Notepad++, released on December 4th, 2024. The RegEx <code>(?-si:&lt;span style=|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code> does not stop searching/finding matches of words with 12 or more letters/alphabets after a <code>&lt;/span&gt;</code> but <code>(?-s)(?-i:&lt;span style=|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code> and <code>(?-i:&lt;span style=[^&gt;]*+&gt;|(?!\A)\G)(?&gt;[^&lt;&gt;\w]++|&lt;(?!\/?span\b)[^&gt;]*+&gt;|\b\w{1,11}\b)*+\K(\b[a-z]{12,}\b)</code> do. Thanks a lot for your time.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98500</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98500</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Thu, 12 Dec 2024 12:13:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Tue, 10 Dec 2024 16:59:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, you’re trying to use this regex <strong><code>(?-i:&lt;span style=[^&gt;]+&gt;|(?!\A)\G)(?&gt;[^&lt;&gt;\w]++|&lt;(?!/?span\b)[^&gt;]+&gt;|\b\w{1,11}\b)*+\K(\b[a-z]{12,}\b)</code></strong></p>
<p dir="auto">But this one, <strong>much more</strong> simple, <strong><code>(?-is:&lt;span style=|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code></strong> does <em>EXACTLY</em> the <strong>same</strong> search and find the <strong>same</strong> matches !!</p>
<hr />
<p dir="auto">It comes from the <strong>second</strong> form of my <strong>generic</strong> regex, discussed in this post :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/topic/22690/generic-regex-replacing-in-a-specific-zone-of-text/1">https://community.notepad-plus-plus.org/topic/22690/generic-regex-replacing-in-a-specific-zone-of-text/1</a></p>
<p dir="auto">where I said, textually :</p>
<blockquote>
<p dir="auto">When the <strong>BSR</strong> and the <strong>different</strong> matches of the <strong>FR</strong> regex are <strong>all</strong> located in a <strong>single</strong> line, any <strong>line-ending</strong> char(s) will <strong>implicitly</strong> break down the <strong><code>\G</code></strong> feature. The <strong>ESR</strong> part is then <strong>useless</strong> and the <strong>generic</strong> regex can be simplified into :</p>
<p dir="auto">SEARCH <strong><code>(?-s)(?-i:</code>BSR<code>|(?!\A)\G).*?\K(?-i:</code>FR<code>)</code></strong></p>
<p dir="auto">REPLACE <strong>RR</strong></p>
</blockquote>
<hr />
<p dir="auto">Thus, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, just stay concentrated on the <strong>black</strong> zones to modify, in order to form a <strong>valid</strong> expression !! Do <strong>not</strong> try anything else, which is, finally, more <strong>complicated</strong> !!</p>
<p dir="auto">So, if we just replace the <strong>BSR</strong> zone by <strong><code>&lt;span style=</code></strong> and the <strong>FR</strong> zone by <strong><code>\b[a-z]{12,}\b</code></strong>, we end up with the <strong>valid</strong> <em>SEARCH</em> regex, below :</p>
<ul>
<li>SEARCH <strong><code>(?-s)(?-i:&lt;span style=|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code></strong></li>
</ul>
<p dir="auto">Which I just <strong>simplified</strong> as :</p>
<ul>
<li>SEARCH <strong><code>(?-si:&lt;span style=|(?!\A)\G).*?\K(?i:\b[a-z]{12,}\b)</code></strong></li>
</ul>
<p dir="auto">And, given your <em>INPUT</em> text :</p>
<pre><code class="language-html">&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Offensive haemorrhages&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/span&gt;
&lt;p style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Confirmatory symptoms&lt;/p&gt;
&lt;ol&gt;&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;REMEDY RELATIONSHIPS&lt;/li&gt;&lt;/ol&gt;
</code></pre>
<p dir="auto">It would match, as <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> said, the <strong>five</strong> strings <strong><code>Haemorrhoids</code></strong>, <strong><code>Haemorrhoids</code></strong>, <strong><code>haemorrhages</code></strong>, <strong><code>CONSCIOUSNESS</code></strong> and <strong><code>Hysterically</code></strong> which all contain <strong><code>12</code></strong> or <strong><code>13</code></strong> chars</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98460</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98460</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 10 Dec 2024 16:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Tue, 10 Dec 2024 14:05:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a></p>
<blockquote>
<p dir="auto">send me a screenshot of his results with Notepad++ which found/matched every word of 12 alphabets</p>
</blockquote>
<p dir="auto">That means you obviously did something differently than he did, or you did not describe your data correctly to him.  Oddly enough, the same thing happens here when Guy and the others try to help you here.</p>
<p dir="auto">Calling it a “bug” in Notepad++, at this point, seems a rather premature conclusion on your part.</p>
<p dir="auto">I took your most-recent data (from <a href="https://community.notepad-plus-plus.org/post/98413">this post</a>) along with the regex that you got from regex101, and it replaced all the instances of twelve-or-more-letter words for me.  So I would agree with the regex101 , that the regex works.</p>
<p dir="auto">Here are some screenshots: I start with the data pasted from your post, then I use the regex shown and use <strong>Replace All</strong>, and I see</p>
<ul>
<li>this:<br />
<img src="/assets/uploads/files/1733839206596-afb69090-d9bc-4a8f-87fd-72824750aa24-image.png" alt="afb69090-d9bc-4a8f-87fd-72824750aa24-image.png" class=" img-fluid img-markdown" /></li>
<li>get converted into:<br />
<img src="/assets/uploads/files/1733839223352-2686c711-ddbf-4dac-80aa-3b6ba5964431-image.png" alt="2686c711-ddbf-4dac-80aa-3b6ba5964431-image.png" class=" img-fluid img-markdown" /></li>
</ul>
<p dir="auto">The five replacements are correct</p>
<p dir="auto">Remember, with ANY regex that uses <code>\K</code> (which this one does), it will not work with single <strong>Replace</strong> – you <em>must</em> use <strong>Replace All</strong></p>
<p dir="auto">So, if the data looks like the data you most-recently shared here, then the regex works to transform your data by using <strong>Replace All</strong>.  If your data does not look like what you shared here, then all bets are off, and all I can do is reiterate what others have told you: regex alone is the wrong tool for editing HTML.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98458</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98458</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 10 Dec 2024 14:05:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Tue, 10 Dec 2024 03:33:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> said in <a href="/post/98451">How to find words with 12 or more alphabets that are between a &lt;li style...........&gt; and &lt;/li&gt;</a>:</p>
<blockquote>
<p dir="auto">(?-i:&lt;span style=[^&gt;]<em>+&gt;|(?!\A)\G)(?&gt;[^&lt;&gt;\w]++|&lt;(?!/?span\b)[^&gt;]</em>+&gt;|\b\w{1,11}\b)*+\K(\b[a-z]{12,}\b)</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> The person who helped me with the above RegEx at <a href="https://regex101.com" rel="nofollow ugc">https://regex101.com</a> was kind enough to send me a screenshot of his results with Notepad++ which found/matched every word of 12 alphabets or more but on my laptop, it found/matched only the first word of 12 alphabets or more between <code>&lt;span............. </code> and <code>&lt;/span&gt;</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/98456</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98456</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Tue, 10 Dec 2024 03:33:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Mon, 09 Dec 2024 19:37:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> said in <a href="/post/98451">How to find words with 12 or more alphabets that are between a &lt;li style...........&gt; and &lt;/li&gt;</a>:</p>
<blockquote>
<p dir="auto">I think this is a Notepad++ bug</p>
</blockquote>
<p dir="auto">Remember, regex101 is not specific to the Boost regex engine, which is the engine that Notepad++ uses.  They might not be answering you with the Boost specifics in mind (though I haven’t read your discussions over there, so maybe they really are answering w/r/t Boost / Notepad++).</p>
<p dir="auto">Every regex engine has its own design decisions, and just because the Boost regex design decisions are different than the engines they deal with does not mean that it’s a bug in Notepad++ (and if it <em>is</em> a bug in Notepad++, it would presumably be inherited from Boost regex, not inherent to Notepad++ itself, as far as I understand things).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98452</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98452</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 09 Dec 2024 19:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Mon, 09 Dec 2024 19:29:09 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> Tweaking your RegEx above to <code>(?-is:&lt;span style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b)</code> helped find the first word with 12 or more alphabets that are between a &lt;span style…&gt; and &lt;/span&gt;.<br />
Someone at <a href="https://regex101.com" rel="nofollow ugc">https://regex101.com</a> tweaked it to <code>(?-i:&lt;span style=[^&gt;]*+&gt;|(?!\A)\G)(?&gt;[^&lt;&gt;\w]++|&lt;(?!\/?span\b)[^&gt;]*+&gt;|\b\w{1,11}\b)*+\K(\b[a-z]{12,}\b)</code> which also helped find the first word with 12 or more alphabets that are between a &lt;span style…&gt; and &lt;/span&gt; on my laptop but for them (and probably, even you) you are able to find/match the second word with 12 or more alphabets that are between a &lt;span style…&gt; and &lt;/span&gt; also. I think this is a Notepad++ bug</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98451</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98451</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Mon, 09 Dec 2024 19:29:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Sat, 07 Dec 2024 11:04:47 GMT]]></title><description><![CDATA[<p dir="auto">Block of text for testing:-</p>
<pre><code>&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Offensive haemorrhages&lt;/span&gt;
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/span&gt;
&lt;p style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Confirmatory symptoms&lt;/p&gt;
&lt;ol&gt;&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;REMEDY RELATIONSHIPS&lt;/li&gt;&lt;/ol&gt;
</code></pre>
<p dir="auto">Everything after the <code>&lt;/span&gt;</code> should be skipped</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98413</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98413</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sat, 07 Dec 2024 11:04:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 06 Dec 2024 20:19:30 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> The regular expression <code>(?-is:&lt;span style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b).*?&lt;\/span&gt;</code> helps find words of 12 alphabets or more between <code>&lt;span style=.....&gt;</code>and <code>&lt;/span&gt;</code>. Is it correct?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98412</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98412</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Fri, 06 Dec 2024 20:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Mon, 02 Dec 2024 19:10:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> said in <a href="/post/98310">How to find words with 12 or more alphabets that are between a &lt;li style...........&gt; and &lt;/li&gt;</a>:</p>
<blockquote>
<p dir="auto">(?-is:&lt;span style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b)</p>
</blockquote>
<p dir="auto">How to make the searching stop upon encountering a <code>&lt;/span&gt;</code>?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98356</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98356</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Mon, 02 Dec 2024 19:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 29 Nov 2024 18:26:29 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>  <code>(?-is:&lt;span style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b)</code> however does find/match it</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98310</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98310</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Fri, 29 Nov 2024 18:26:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 29 Nov 2024 17:46:55 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> I have another block of text for testing as follows:-<br />
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/span&gt;<br />
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/span&gt;<br />
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;Offensive haemorrhages&lt;/span&gt;<br />
&lt;span style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/span&gt;</p>
<p dir="auto">The Regular expression <code>(?-is:&lt;span style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b).*?\K(\b[a-z]{12,}\b)</code> does not find/match anything</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98309</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98309</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Fri, 29 Nov 2024 17:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 29 Nov 2024 16:41:57 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> It doesn’t begin at the start of the line, so I will not use your last RegEx (just above this response of mine). At <a href="http://regex101.com" rel="nofollow ugc">regex101.com</a> your Regular Expression does find that second word/term with 12 or more alphabets (see <a href="https://regex101.com/r/Dw8XTK/1" rel="nofollow ugc">https://regex101.com/r/Dw8XTK/1</a>) but it doesn’t on my laptop. It may be due to a bug but I will manage - I don’t want to waste your time. Thanks for your help and time!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98303</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98303</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Fri, 29 Nov 2024 16:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 29 Nov 2024 14:48:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I don’t understand ! With the <strong><code>(?-is:&lt;li style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b)</code></strong> regex, once the <strong>search</strong> regex  has matched the word <strong><code>CONSCIOUSNESS</code></strong>, if you click again on the <strong><code>Find Next</code></strong> button, it does find the word <strong><code>Hysterically</code></strong> !</p>
<p dir="auto">If it’s <strong>not</strong> the case just post the <em>EXACT</em> <strong>raw</strong> text  used</p>
<p dir="auto">You do <strong>not</strong> need your <strong>second</strong> version !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> : if your strings <strong><code>&lt;li style=</code></strong> <strong>always</strong> begin a line, you may <strong>narrow</strong> down the results with this version :</p>
<ul>
<li>SEARCH <strong><code>(?-is:^&lt;li style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b)</code></strong></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/98299</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98299</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 29 Nov 2024 14:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 29 Nov 2024 14:17:40 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> <code>(?-is:&lt;li style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b).*?\K(\b[a-z]{12,}\b)</code> helps find/match only the second word/term with 12 or more alphabets. So I can probably use this RegEx and make changes and then use what you gave to find the first word/term with 12 or more alphabets.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98297</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98297</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Fri, 29 Nov 2024 14:17:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 29 Nov 2024 13:50:19 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> The word/term, “Hysterically” is not found/matched, probably because it is the second word with 12 or more alphabets in the same line. Can you tweak that RegEx to help find such words?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98296</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98296</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Fri, 29 Nov 2024 13:50:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to find words with 12 or more alphabets that are between a  and  on Fri, 29 Nov 2024 10:22:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">For your problem, I would use the <strong>second</strong> form of the <strong>generic</strong> regex, exposed in this post :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/topic/22690/generic-regex-replacing-in-a-specific-zone-of-text">https://community.notepad-plus-plus.org/topic/22690/generic-regex-replacing-in-a-specific-zone-of-text</a></p>
<p dir="auto">The SEARCH regex is <strong><code>(?-s)(?-i:</code>BSR<code>|(?!\A)\G).*?\K(?-i:</code>FR<code>)</code></strong></p>
<p dir="auto">Note that the <strong>key</strong>-point, of that <strong>generic</strong> regex, is the use of the <strong><code>\G</code></strong> regex feature which means that a <strong>next</strong> match <em>MUST</em> begin <strong>right after</strong> the <strong>previous</strong> match !</p>
<hr />
<p dir="auto">If we apply this <strong>generic</strong> regex to your <strong>practical</strong> search, it means that :</p>
<ul>
<li>
<p dir="auto">The <strong>BSR</strong> ( <em>Begin Search region Regex</em> ) is <strong><code>&lt;li style=</code></strong></p>
</li>
<li>
<p dir="auto">The <strong>FR</strong>  ( <em>Find Regex</em> ) is <strong><code>(?i)(\b[a-z]{12,}\b)</code></strong></p>
</li>
</ul>
<p dir="auto">Note that I changed the initial FR <strong>case-sensitive</strong> region <strong><code>(?-i:</code>FR<code>)</code></strong>, embedded in a <strong>non-capturing</strong> group, by the case-<strong>insensitive</strong> region, embedded in <strong>group <code>1</code></strong> <strong><code>(?i)(\b[a-z]{12,}\b)</code></strong></p>
<p dir="auto">This leads to this <strong>functional</strong> regex, below, which solves your <strong>practical</strong> case :</p>
<p dir="auto">SEARCH <strong><code>(?-is:&lt;li style=|(?!\A)\G).*?\K(?i)(\b[a-z]{12,}\b)</code></strong></p>
<p dir="auto">REPLACE <strong>RR</strong></p>
<hr />
<p dir="auto">Thus :</p>
<ul>
<li>Put the <em>INPUT</em> text, below , in a <strong>new</strong> tab</li>
</ul>
<pre><code class="language-xml">&lt;div class=“right”&gt;
&lt;ol&gt;
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;Haemorrhoids &lt;br&gt;- piles&lt;/div&gt;&lt;/li&gt;
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;Haemorrhoids&lt;br&gt;-piles&lt;/div&gt;&lt;/li&gt;
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;Offensive haemorrhages&lt;/div&gt;&lt;/li&gt;
&lt;li style=“padding: 0px; list-style-type: decimal; list-style-image: none; list-style-position: outside; font-family: “verdana”; font-size: 18px; color: black;”&gt;&lt;div class=“marginleft”&gt;CONSCIOUSNESS of womb. Hysterically inclined.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
</code></pre>
<ul>
<li>
<p dir="auto">Move to the <strong>very beginning</strong> of the file</p>
</li>
<li>
<p dir="auto">Open the <strong>Find</strong> or <strong>Replace</strong> dialog</p>
</li>
<li>
<p dir="auto"><strong>Uncheck</strong> all the <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">Check the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click, <strong>several</strong> times, on the <strong><code>Next</code></strong> button to verify the <strong>different</strong> matches or click, <strong>once</strong> only, on the <strong><code>Replace All</code></strong> button for a <strong>global</strong> replacement</p>
</li>
</ul>
<hr />
<p dir="auto"><strong>Note</strong> : if your text may contain <strong>accentuated</strong> characters, I advice you to <strong>prefer</strong> this version :</p>
<ul>
<li>SEARCH <strong><code>(?-is:&lt;li style=|(?!\A)\G).*?\K(?i)(\b[\u\l]{12,}\b)</code></strong></li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98288</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98288</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 29 Nov 2024 10:22:34 GMT</pubDate></item></channel></rss>