<?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[Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols]]></title><description><![CDATA[<p dir="auto">I have this regex</p>
<p dir="auto">Regex: Select all html tags which contain no characters:</p>
<pre><code>&lt;p&gt;下列特别条款适用&lt;/p&gt;
&lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt; 
&lt;p&gt;于本保险单的各个部分，若其&lt;/p&gt;
</code></pre>
<p dir="auto"><strong>The regex must find only these lines :</strong></p>
<pre><code>&lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt;
</code></pre>
<p dir="auto"><strong>My regex is not working:</strong></p>
<p dir="auto"><code>&lt;\/?(?![a-zA-Z0-9])[a-zA-Z0-9]*[^&lt;&gt;]*&gt;</code></p>
<p dir="auto">or this:</p>
<p dir="auto"><code>&lt;p&gt;.*(?-s)(?![a-zA-Z0-9])*&lt;/p&gt;</code></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25280/regex-select-all-html-tags-which-no-contain-characters-and-onother-regex-that-contain-only-tags-with-simbols</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 06:31:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25280.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Dec 2023 08:09:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Tue, 02 Jan 2024 15:46: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> happy new year, all notepad++ team !! The best editor on earth !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91595</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91595</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Tue, 02 Jan 2024 15:46:09 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Sat, 30 Dec 2023 13:23:53 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: hellena-crainicu">@<bdi>hellena-crainicu</bdi></a>,</p>
<p dir="auto">Well, simply answer my <strong>previous</strong>  post !</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91520</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91520</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 30 Dec 2023 13:23:53 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Fri, 29 Dec 2023 15:52:22 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> thanks, do you have a better solution?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91487</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91487</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Fri, 29 Dec 2023 15:52:22 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Fri, 29 Dec 2023 14:21:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: hellena-crainicu">@<bdi>hellena-crainicu</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I can assure you that your sub-regexes <strong><code>[\x{4E00}-\x{9FFF}\p{Latin}]</code></strong> and <strong><code>[\p{Latin}\p{Han}]</code></strong> should <em>NOT</em> have worked as expected, during your texts !!</p>
<p dir="auto">Indeed, our present <strong><code>Boost</code></strong> regex engine does <strong>NOT</strong> support :</p>
<ul>
<li>
<p dir="auto">The <strong>normal</strong> Unicode syntax <strong><code>\p{name}</code></strong> like, for example, in <strong><code>\p{Lu}</code></strong> or <strong><code>\p{IsCyrillic}</code></strong></p>
</li>
<li>
<p dir="auto">The <strong>inverse</strong> Unicode syntax <strong><code>\P{name}</code></strong> like, for example in <strong><code>\P(C)</code></strong> or <strong><code>\P{IsGreek}</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto">Thus, more simply :</p>
<ul>
<li>
<p dir="auto">Your sub-regex  <strong><code>[\x{4E00}-\x{9FFF}\p{Latin}]</code></strong> would match any char from the <strong><code>CJK Unified Ideographs</code></strong> Unicode block or the <strong>latin</strong> letters <strong><code>p</code></strong>, <strong><code>L</code></strong>, <strong><code>a</code></strong>, <strong><code>t</code></strong>, <strong><code>i</code></strong>, <strong><code>n</code></strong> and the <strong>two</strong> symbols <strong><code>{</code></strong> and <strong><code>}</code></strong></p>
</li>
<li>
<p dir="auto">Your sub-regex <strong><code>[\p{Latin}\p{Han}]</code></strong> would match the <strong>Latin</strong> letters <strong><code>H</code></strong>, <strong><code>L</code></strong>, <strong><code>a</code></strong>, <strong><code>i</code></strong>, <strong><code>n</code></strong>, <strong><code>p</code></strong>, <strong><code>t</code></strong> and the <strong>two</strong> symbols <strong><code>{</code></strong> and <strong><code>}</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto"><em>IF</em> <strong><code>Boost</code></strong> had been compiled to support <strong><code>Unicode</code></strong> and <strong><code>ICU</code></strong>, the <strong>regex</strong> syntaxes, mentionned at the <strong>beginning</strong>, would have been possible.</p>
<p dir="auto">For instance, the regex <strong><code>(?=P{L})\p{IsLetterlikeSymbols}</code></strong> or the regex <strong><code>(?!p{L})\p{IsLetterlikeSymbols}</code></strong> would match <em>ANY</em> single <strong><code>Letterlike Symbols</code></strong> character which does <em>NOT</em> belong to the <strong><code>General Category</code></strong> <strong>Letter</strong></p>
<p dir="auto">So, given my present <strong><code>Consolas</code></strong> font, installed on my <strong><code> Windows10</code></strong> laptop, it would return the <strong><code>34</code></strong> characters, of the list below, out of the <strong><code>80</code></strong> characters of the <strong><code>Letterlike Symbols</code></strong> block !</p>
<p dir="auto">Refer to <a href="http://www.unicode.org/charts/PDF/U2100.pdf" rel="nofollow ugc">http://www.unicode.org/charts/PDF/U2100.pdf</a></p>
<pre><code class="language-diff">•--------•------------------------------------•-------•--------------------•---------•
|  Code  |           Character Name           |   GC  |  General Category  |   Char  |
•--------•------------------------------------•-------•--------------------•---------•
|  2118  |  SCRIPT CAPITAL P                  |   Sm  |    Symbol, math    |    ℘    |
|  2140  |  DOUBLE-STRUCK N-ARY SUMMATION     |   Sm  |    Symbol, math    |    ⅀    |
|  2141  |  TURNED SANS-SERIF CAPITAL G       |   Sm  |    Symbol, math    |    ⅁    |
|  2142  |  TURNED SANS-SERIF CAPITAL L       |   Sm  |    Symbol, math    |    ⅂    |
|  2143  |  REVERSED SANS-SERIF CAPITAL L     |   Sm  |    Symbol, math    |    ⅃    |
|  2144  |  TURNED SANS-SERIF CAPITAL Y       |   Sm  |    Symbol, math    |    ⅄    |
|  214B  |  TURNED AMPERSAND                  |   Sm  |    Symbol, math    |    ⅋    |
•--------•------------------------------------•-------•--------------------•---------•
|  2100  |  ACCOUNT OF                        |   So  |    Symbol, other   |    ℀    |
|  2101  |  ADDRESSED TO THE SUBJECT          |   So  |    Symbol, other   |    ℁    |
|  2103  |  DEGREE CELSIUS                    |   So  |    Symbol, other   |    ℃    |
|  2104  |  CENTRE LINE SYMBOL                |   So  |    Symbol, other   |    ℄    |
|  2105  |  CARE OF                           |   So  |    Symbol, other   |    ℅    |
|  2106  |  CADA UNA                          |   So  |    Symbol, other   |    ℆    |
|  2108  |  SCRUPLE                           |   So  |    Symbol, other   |    ℈    |
|  2109  |  DEGREE FAHRENHEIT                 |   So  |    Symbol, other   |    ℉    |
|  2114  |  L B BAR SYMBOL                    |   So  |    Symbol, other   |    ℔    |
|  2116  |  NUMERO SIGN                       |   So  |    Symbol, other   |    №    |
|  2117  |  SOUND RECORDING COPYRIGHT         |   So  |    Symbol, other   |    ℗    |
|  211E  |  PRESCRIPTION TAKE                 |   So  |    Symbol, other   |    ℞    |
|  211F  |  RESPONSE                          |   So  |    Symbol, other   |    ℟    |
|  2120  |  SERVICE MARK                      |   So  |    Symbol, other   |    ℠    |
|  2121  |  TELEPHONE SIGN                    |   So  |    Symbol, other   |    ℡    |
|  2122  |  TRADE MARK SIGN                   |   So  |    Symbol, other   |    ™    |
|  2123  |  VERSICLE                          |   So  |    Symbol, other   |    ℣    |
|  2125  |  OUNCE SIGN                        |   So  |    Symbol, other   |    ℥    |
|  2127  |  INVERTED OHM SIGN                 |   So  |    Symbol, other   |    ℧    |
|  2129  |  TURNED GREEK SMALL LETTER IOTA    |   So  |    Symbol, other   |    ℩    |
|  212E  |  ESTIMATED SYMBOL                  |   So  |    Symbol, other   |    ℮    |
|  213A  |  ROTATED CAPITAL Q                 |   So  |    Symbol, other   |    ℺    |
|  213B  |  FACSIMILE SIGN                    |   So  |    Symbol, other   |    ℻    |
|  214A  |  PROPERTY LINE                     |   So  |    Symbol, other   |    ⅊    |
|  214C  |  PER SIGN                          |   So  |    Symbol, other   |    ⅌    |
|  214D  |  AKTIESELSKAB                      |   So  |    Symbol, other   |    ⅍    |
|  214F  |  SYMBOL FOR SAMARITAN SOURCE       |   So  |    Symbol, other   |    ⅏    |
•--------•------------------------------------•-------•--------------------•---------•
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91486</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91486</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 29 Dec 2023 14:21:49 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Fri, 29 Dec 2023 07:06:53 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/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a></p>
<p dir="auto">I find the solution:</p>
<pre><code>&lt;p&gt;下列特别条款适用&lt;/p&gt;
&lt;p&gt;     。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt; 
&lt;p&gt;I love reading books&lt;/p&gt;
&lt;p&gt;:    &lt;/p&gt;
</code></pre>
<p dir="auto">These 2 regex below find also latino and chinesse characters tags:</p>
<p dir="auto"><strong>FIND:</strong>  <code>&lt;p&gt;.*[\x{4e00}-\x{9fff}a-zA-Z]+.*&lt;\/p&gt;</code></p>
<p dir="auto">ot this:</p>
<p dir="auto"><strong>FIND:</strong> <code>&lt;p&gt;.*[\x{4E00}-\x{9FFF}\p{Latin}].*&lt;\/p&gt;</code></p>
<p dir="auto">I made other tests, such as the following:</p>
<p dir="auto"><strong>Find only chinese characters tags:</strong></p>
<p dir="auto"><code>&lt;p&gt;(?=.*[\x{4e00}-\x{9fff}])(?=.*[a-zA-Z]).*&lt;\/p&gt;</code><br />
<code>&lt;p&gt;(?=.*[\x{4e00}-\x{9fff}])[a-zA-Z\x{4e00}-\x{9fff}].*&lt;\/p&gt;</code><br />
<code>&lt;p&gt;(?=[^\x00-\x7F]+)[^\x00-\x7F]+&lt;\/p&gt;</code><br />
<code>&lt;p&gt;(?:(?=[^\x00-\x7F]+)[^\x00-\x7F]+|[a-zA-Z]+)&lt;\/p&gt;</code><br />
<code>&lt;p&gt;(?:(?![a-zA-Z])[^\x00-\x7F]+|[a-zA-Z]+)&lt;\/p&gt;</code><br />
<code>&lt;p&gt;(?:[\x{4e00}-\x{9fff}]|[a-zA-Z])+&lt;\/p&gt;</code></p>
<p dir="auto"><strong>Find only latino characters tags:</strong></p>
<p dir="auto"><code>&lt;p&gt;.*([\p{Latin}\p{Han}]).*&lt;\/p&gt;</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91482</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91482</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Fri, 29 Dec 2023 07:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Thu, 28 Dec 2023 19:26:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,  <a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: hellena-crainicu">@<bdi>hellena-crainicu</bdi></a>,</p>
<p dir="auto">I suppose that the <strong>best</strong> would be to know which characters your’re looking for ( either <strong>word</strong> and <strong>symbol/punctuation</strong> characters )</p>
<p dir="auto">So, from these <strong>two</strong> tables below, could you tell us which characters you are supposed to search for, among <strong>all</strong> your files :</p>
<hr />
<p dir="auto"><strong>1)</strong> Regarding <strong><code>Word</code></strong> characters in :</p>
<pre><code class="language-diff">    •----•------------------------------------•-------------•---•---------------------------•---------------------------------------------•
    |  A | Basic LATIN ( ASCII )              | 0000 - 007F | x | (?s).*[\x{0000}-\x{007F}] | http://www.unicode.org/charts/PDF/U0000.pdf |
    |  B | LATIN-1 Supplement                 | 0080 - 00FF | • | (?s).*[\x{0080}-\x{00FF}] | http://www.unicode.org/charts/PDF/U0080.pdf |
    |  C | LATIN Extended-A                   | 0100 - 017F | • | (?s).*[\x{0100}-\x{017F}] | http://www.unicode.org/charts/PDF/U0100.pdf |
    |  D | LATIN Extended-B                   | 0180 - 024F | • | (?s).*[\x{0180}-\x{024F}] | http://www.unicode.org/charts/PDF/U0180.pdf |
    |  E | LATIN Extended Additional          | 1E00 - 1EFF | • | (?s).*[\x{1E00}-\x{1EFF}] | http://www.unicode.org/charts/PDF/U1E00.pdf |
    |  F | LATIN Extended-C                   | 2C60 - 2C7F | • | (?s).*[\x{2C60}-\x{2C7F}] | http://www.unicode.org/charts/PDF/U2C60.pdf |
    |  G | LATIN Extended-D                   | A720 - A7FF | • | (?s).*[\x{A720}-\x{A7FF}] | http://www.unicode.org/charts/PDF/UA720.pdf |
    |  H | LATIN Extended-E                   | AB30 - AB6F | • | (?s).*[\x{AB30}-\x{AB6F}] | http://www.unicode.org/charts/PDF/UAB30.pdf |
    |  I | HALFWIDTH/FULLWITH Forms           | FF00 - FFEF | • | (?s).*[\x{FF00}-\x{FFEF}] | http://www.unicode.org/charts/PDF/UFF00.pdf |
    •----•------------------------------------•-------------•---•---------------------------•---------------------------------------------•
    |  J | CJK Radicals Supplement            | 2E80 - 2EFF | • | (?s).*[\x{2E80}-\x{2EFF}] | http://www.unicode.org/charts/PDF/U2E80.pdf |
    |  K | KANGXI Radicals                    | 2F00 - 2FDF | • | (?s).*[\x{2F00}-\x{2FDF}] | http://www.unicode.org/charts/PDF/U2F00.pdf |
    |  L | CJK Unified Ideographs Extension A | 3400 - 4DBF | • | (?s).*[\x{3400}-\x{4DBF}] | http://www.unicode.org/charts/PDF/U3400.pdf |
    |  M | CJK Unified Ideographs (Han )      | 4E00 - 9FFF | x | (?s).*[\x{4E00}-\x{9FFF}] | http://www.unicode.org/charts/PDF/U4E00.pdf |
    |  N | CJK Compatibility Ideographs       | F900 - FAFF | • | (?s).*[\x{F900}-\x{FAFF}] | http://www.unicode.org/charts/PDF/UF900.pdf |
    •----•------------------------------------•-------------•---•---------------------------•---------------------------------------------•
</code></pre>
<p dir="auto"><strong>2)</strong> Regarding <strong><code>Symbol/Punctuation</code></strong> characters in :</p>
<pre><code class="language-diff">    •----•------------------------------------•-------------•---•---------------------------•---------------------------------------------•
    |  1 | ASCII Punctuation                  | 0000 - 007F | x | (?s).*[\x{0000}-\x{007F}] | http://www.unicode.org/charts/PDF/U0000.pdf |
    |  2 | LATIN-1 Punctuation                | 0080 - 00FF | • | (?s).*[\x{0080}-\x{00FF}] | http://www.unicode.org/charts/PDF/U0080.pdf |
    |  3 | GENERAL Punctuation                | 2000 - 206F | • | (?s).*[\x{2000}-\x{206F}] | http://www.unicode.org/charts/PDF/U2000.pdf |
    |  4 | SUPPLEMENTAL Punctuation           | 2E00 - 2E7F | • | (?s).*[\x{2E00}-\x{2E7F}] | http://www.unicode.org/charts/PDF/U2E00.pdf |
    |  5 | VERTICAL Forms                     | FE10 - FE1F | • | (?s).*[\x{FE10}-\x{FE1F}] | http://www.unicode.org/charts/PDF/UFE10.pdf |
    |  6 | SMALL form Variants                | FE50 - FE6F | • | (?s).*[\x{FE50}-\x{FE6F}] | http://www.unicode.org/charts/PDF/UFE50.pdf |
    |  7 | HALFWIDTH/FULLWIDTH LATIN Forms    | FF00 - FFEF | x | (?s).*[\x{FF00}-\x{FFEF}] | http://www.unicode.org/charts/PDF/UFF00.pdf |
    •----•------------------------------------•-------------•---•---------------------------•---------------------------------------------•
    |  8 | Ideographic Desciption characters  | 2FF0 - 2FFF | • | (?s).*[\x{2FF0}-\x{2FFF}] | http://www.unicode.org/charts/PDF/U2FF0.pdf |
    |  9 | CJK Symbols and Punctuation        | 3000 - 303F | x | (?s).*[\x{3000}-\x{303F}] | http://www.unicode.org/charts/PDF/U3000.pdf |
    | 10 | Enclosed CJK Letters and Months    | 3200 - 32FF | • | (?s).*[\x{3200}-\x{32FF}] | http://www.unicode.org/charts/PDF/U3200.pdf |
    | 11 | CJK Compatibility                  | 3300 - 33FF | • | (?s).*[\x{3300}-\x{33FF}] | http://www.unicode.org/charts/PDF/U3300.pdf |
    | 12 | CJK Stokes                         | 31C0 - 31EF | • | (?s).*[\x{31C0}-\x{31EF}] | http://www.unicode.org/charts/PDF/U31C0.pdf |
    | 13 | CJK Compatibility Forms            | FE30 - FE4F | • | (?s).*[\x{FE30}-\x{FE4F}] | http://www.unicode.org/charts/PDF/UFE30.pdf |
    | 14 | Halfwidth CJK Punctuation          | FF61 - FF64 | • | (?s).*[\x{FF61}-\x{FF64}] | http://www.unicode.org/charts/PDF/UFF00.pdf |
    •----•------------------------------------•-------------•---•---------------------------•---------------------------------------------•
</code></pre>
<p dir="auto">Then, it should be easier to see what must be <strong>matched</strong> / <strong>unmatched</strong> ;-))</p>
<hr />
<p dir="auto">Not a <strong>big</strong> task, anyway ! We <strong>already</strong> know that :</p>
<ul>
<li>
<p dir="auto">The <strong><code>word</code></strong> chars, in lines <strong><code>A</code></strong> and <strong><code>M</code></strong>, must be considered</p>
</li>
<li>
<p dir="auto">The <strong><code>Symbol/Punctuation</code></strong> chars, in lines <strong><code>1</code></strong>, <strong><code>7</code></strong> ( because <strong><code>\x{FF0C}</code></strong> ) and <strong><code>9</code></strong> ( because <strong><code>\x{3002}</code></strong> ), must be taken in account, too</p>
</li>
</ul>
<hr />
<p dir="auto">Thus, if <strong>all</strong> your files are located in a <strong>single</strong> folder :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Find in Files</strong> dialog ( <strong><code>Shift + Ctrl + F</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Uncheck</strong> the <strong><code>Match whole word only</code></strong> and <strong><code>Match case</code></strong> options, if necessary</p>
</li>
<li>
<p dir="auto">Enter <strong><code>$0</code></strong> in the <strong><code>Replace with :</code></strong> zone</p>
</li>
<li>
<p dir="auto">Enter your file <strong>extension</strong> in the <strong><code>Filters :</code></strong> zone</p>
</li>
<li>
<p dir="auto">Enter your searched folder in the <strong><code>Directory :</code></strong> one</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression </code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">For <strong>each</strong> line which contain a <strong><code>•</code></strong> in the <strong>fourth</strong> column of the <strong>above</strong> tables</p>
<ul>
<li>
<p dir="auto">Enter the <strong>corresponding</strong> regex in the <strong><code>Find what :</code></strong> zone</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Find All</code></strong> button ( <strong>Only</strong> <strong><code>1</code></strong> result per file )</p>
</li>
<li>
<p dir="auto">If <strong>one</strong> or <strong>several</strong> result(s) for a <strong>specific</strong> line occur(s), this means that its <strong>searched</strong> range must be taken in <strong>account</strong></p>
</li>
</ul>
</li>
</ul>
<p dir="auto">=&gt; So, just notice us about <strong>all</strong> the <strong>remaining</strong> lines which should be <strong>considered</strong> too !</p>
<hr />
<p dir="auto"><strong>Two</strong> remarks :</p>
<ul>
<li>
<p dir="auto">I voluntarily omitted <strong>all</strong> Unicode ranges over the <strong>BMP</strong>, so with value <strong>over</strong> <strong><code>\x{FFFF}</code></strong></p>
</li>
<li>
<p dir="auto">I also omitted any <strong>Greek</strong>, <strong>Cyrillic</strong>, <strong>Hebrew</strong>, <strong>Arabic</strong>, <strong>Hangul</strong> and <strong>Japanese</strong> Unicode ranges. If necessary, tell me about it !</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91478</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91478</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 28 Dec 2023 19:26:35 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Thu, 28 Dec 2023 18:45:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: Hellena-Crainicu">@<bdi>Hellena-Crainicu</bdi></a> said in <a href="/post/91467">Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols</a>:</p>
<blockquote>
<p dir="auto">In this case, your regex would not find the last line. So, both line must be find.</p>
</blockquote>
<p dir="auto">As I have posted before, I encourage you to experiment and think as that is what will lead to learning how to use something. You have already been provided with the nuts and bolts of how to create regular expressions including things such as <code>(this|or|that)</code> that could easily be used to handle <code>(Chinese|Latino)</code>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91477</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91477</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Thu, 28 Dec 2023 18:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Thu, 28 Dec 2023 07:05:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> your regex is good for chinese. thanks. But I forgot to change the last line. Instead of chinesse, should be latino words.</p>
<p dir="auto">In this case, your regex would not find the last line. So, both line must be find.</p>
<pre><code>&lt;p&gt;下列特别条款适用&lt;/p&gt;
&lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt; 
&lt;p&gt;I love reading books&lt;/p&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/91467</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91467</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Thu, 28 Dec 2023 07:05:40 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 21:15:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: Hellena-Crainicu">@<bdi>Hellena-Crainicu</bdi></a> said in <a href="/post/91455">Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols</a>:</p>
<blockquote>
<p dir="auto">by the way, <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">Is there a vice-versa formula regex? For example, I want to use a regex to find the opposite. Only tags that containe characters.</p>
<p dir="auto">In the example, I need to find only the first and the last line.</p>
<pre><code>&lt;p&gt;下列特别条款适用&lt;/p&gt;
&lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt; 
&lt;p&gt;于本保险单的各个部分，若其&lt;/p&gt;
</code></pre>
<p dir="auto">What would be the regex formula in this case?</p>
</blockquote>
<p dir="auto">The <a href="https://www.fileformat.info/info/unicode/block/cjk_unified_ideographs/index.htm" rel="nofollow ugc">CJK Unified Ideographs</a> run from <code>\x{4E00}</code> to <code>\x{9FFF}</code>.<br />
You also use <code>，</code> which is <code>\x{FF0C}</code> or a fullwidth comma,<br />
You can use <code>&lt;p&gt;[\x{4E00}-\x{9FFF}\x{FF0C}]+&lt;/p&gt;</code> to match any paragraph containing only CJK Unified Ideographs and/or the fullwidth comma.</p>
<p dir="auto">A <code>not</code> in regular expressions is tricky as it means everything in the character set that is not something. For example <code>[^\x{4E00}-\x{9FFF}\x{FF0C}]</code> matches everything in the character set that is not a CJK Unified Ideograph or the fullwidth comma. It matches end of line characters and everything else including the characters <code>&lt;</code>, <code>/</code>, <code>p</code>, and <code>&gt;</code>.</p>
<p dir="auto">Thus we use <code>&lt;p&gt;[^\x{4E00}-\x{9FFF}\x{FF0C}&lt;]*&lt;/p&gt;</code> which will match the leading <code>&lt;p&gt;</code> followed by <code>[^\x{4E00}-\x{9FFF}\x{FF0C}&lt;]*</code> to match anything not a CJK Unified Ideograph, or the fullwidth comma, or the <code>&lt;</code> left angle bracket which is followed by the trailing <code>&lt;/p&gt;</code> which starts with a <code>&lt;</code> left angle bracket.</p>
<p dir="auto">Note that this works well for <a href="https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane" rel="nofollow ugc">Basic Multilingual Plane</a> characters which are <code>\x{0000}</code> to <code>\x{ffff}</code>. If your text files and/or regular expressions contain extended Unicode characters from <code>U+10000</code> to <code>U+10FFFF</code> then you will can run into issues.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91461</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91461</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Wed, 27 Dec 2023 21:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 16:05:48 GMT]]></title><description><![CDATA[<p dir="auto">by the way, <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">Is there a vice-versa formula regex? For example, I want to use a regex to find the opposite. Only tags that containe characters.</p>
<p dir="auto">In the example, I need to find only the first and the last line.</p>
<pre><code>&lt;p&gt;下列特别条款适用&lt;/p&gt;
&lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt; 
&lt;p&gt;于本保险单的各个部分，若其&lt;/p&gt;
</code></pre>
<p dir="auto">What would be the regex formula in this case?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91455</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91455</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Wed, 27 Dec 2023 16:05:48 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 15:42:22 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> super answer. Thanks a lot. Merry Christmas !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91452</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91452</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Wed, 27 Dec 2023 15:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 13:44:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: hellena-crainicu">@<bdi>hellena-crainicu</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: lycan-thrope">@<bdi>lycan-thrope</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Both of you did the <strong>same</strong> mistake : the <strong><code>\u####</code></strong> syntax, to describe a <strong>specific</strong> character, <em>DOES NOT</em> exist for the <strong><code>Boost</code></strong> regex engine ! The <em>RIGHT</em> syntax which works is <strong><code>\x{####}</code></strong> ;-))</p>
<hr />
<p dir="auto">Secondly, @helena-crainicu, even if you’re using the <strong>correct</strong> syntax, below :</p>
<p dir="auto"><strong><code>&lt;p&gt;\s*(?![a-zA-Z\x{4e00}-\x{9fff}]).*&lt;/p&gt;</code></strong></p>
<p dir="auto">This line <strong><code>&lt;p&gt;---别条款适用&lt;/p&gt;</code></strong> line, which begins with a <strong>symbol</strong>, after <strong><code>&lt;p&gt;</code></strong>,  would <strong>also</strong> match !</p>
<p dir="auto">May be, you would have preferred the following syntax which matches the <strong>entire</strong> line, <em>ONLY IF</em> all chars, between <strong><code>&lt;p&gt;</code></strong> and <strong><code>&lt;/p&gt;</code></strong>, are <strong>different</strong> from a usual <strong>letter</strong> and <strong>different</strong> from a <strong>Chinese</strong> character</p>
<p dir="auto">MARK <strong><code>(?s-i)^\s*&lt;p&gt;((?![a-zA-Z\x{4e00}-\x{9fff}]).)*&lt;/p&gt;</code></strong></p>
<p dir="auto">Thus, from this <em>INPUT</em> file :</p>
<pre><code class="language-diff">&lt;p&gt;下列特别条款适用&lt;/p&gt;
&lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
&lt;p&gt;---别条款适用&lt;/p&gt;
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt; 
&lt;p&gt;于本保险单的各个部分，若其&lt;/p&gt;
</code></pre>
<p dir="auto">It would <em>ONLY</em> mark these sections :</p>
<pre><code class="language-diff">&lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;  
 &lt;p&gt;______&lt;/p&gt;  
 &lt;p&gt; &lt;/p&gt; 
</code></pre>
<hr />
<p dir="auto">Now, I improved your regex to a <strong>multi line</strong> regex, expressed with the <strong>free-spacing</strong> mode, where <strong>any</strong> char considered as a <strong>word</strong> character ( <strong><code>\w</code></strong> ) is <strong>forbidden</strong> except for the <strong>underscore</strong> character, thanks to the syntax <strong><code>[\W_]</code></strong>, in a <strong>positive</strong> look-ahead, at <strong>any</strong> position between <strong><code>&lt;p&gt;</code></strong> and <strong><code>&lt;/p&gt;</code></strong></p>
<p dir="auto">MARK <strong><code>(?xs-i) ^ \s* &lt;p&gt; ( (?= [\W_] ) . )* &lt;/p&gt;</code></strong></p>
<p dir="auto">So, for example, with this <em>INPUT</em> text :</p>
<pre><code>&lt;p&gt;下列特
别条款适用&lt;/p&gt;
    &lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;--
-&lt;/p&gt;  
   &lt;p&gt;__
 ____&lt;/p&gt;  
&lt;p&gt;---下列特
别条款适用 @@@&lt;/p&gt;
 &lt;p&gt;   &lt;/p&gt; 
&lt;p&gt;于本保险单的
各个部分，若其
&lt;/p&gt;
  &lt;p&gt;_____
----
####  		
   &lt;/p&gt;
&lt;p&gt; Not allowed&lt;/p&gt;
   &lt;p&gt;~~~
   ~~&lt;/p&gt;
</code></pre>
<p dir="auto">It would <em>ONLY</em> mark these lines, in <strong><code>6</code></strong> matches :</p>
<pre><code class="language-diff">    &lt;p&gt;         。&lt;/p&gt;
&lt;p&gt;--
-&lt;/p&gt;  
   &lt;p&gt;__
 ____&lt;/p&gt;  
 &lt;p&gt;   &lt;/p&gt; 
  &lt;p&gt;_____
----
####  		
   &lt;/p&gt;
   &lt;p&gt;~~~
   ~~&lt;/p&gt;
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto">Note that the syntax <strong><code>(?xs-i) ^ \s* &lt;p&gt; ( (?= [\W_] ) . )*? &lt;/p&gt;</code></strong>, with a <strong>question mark</strong>, near the <strong>end</strong> of the regex, is not <strong>mandatory</strong> because the <strong><code>&lt;/p&gt;</code></strong> string CANNOT be found between the boundaries <strong><code>&lt;p&gt;</code></strong> and <strong><code>&lt;/p&gt;</code></strong> because <strong>each</strong> char must <strong>not</strong> be a <strong>word</strong> char, thus <strong>different</strong> for the <strong><code>p</code></strong> letter !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91449</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91449</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 27 Dec 2023 13:44:21 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 09:12:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: Hellena-Crainicu">@<bdi>Hellena-Crainicu</bdi></a> ,<br />
Maybe you should wait for the gurus. :-)<br />
I can’t find a way to allow  <code>_ or #95 or #5F</code> to be allowed to show.</p>
<p dir="auto">Perhaps some new eyes might help.  Good luck.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91447</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91447</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Wed, 27 Dec 2023 09:12:36 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 08:56:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: Hellena-Crainicu">@<bdi>Hellena-Crainicu</bdi></a> said in <a href="/post/91445">Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols</a>:</p>
<blockquote>
<p dir="auto">Yes, strange. I try this, but still cannot find _ underscores</p>
<p dir="auto">&lt;p&gt;\s*(?![a-zA-Z\u4e00-\u9fff_]+\s*&lt;/p&gt;)[^&lt;&gt;]*&lt;/p&gt;</p>
</blockquote>
<p dir="auto">This regex recaptures the kanji</p>
<p dir="auto">this one works by not finding the kanji</p>
<blockquote>
<p dir="auto">or<br />
&lt;p&gt;\s*(?![a-zA-Z\u4e00-\u9fff_]+\s*&lt;/p&gt;)[^\w_]*&lt;/p&gt;</p>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/91446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91446</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Wed, 27 Dec 2023 08:56:13 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 08:43:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a> said in <a href="/post/91444">Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols</a>:</p>
<blockquote>
<p dir="auto">&lt;p&gt;\s*(?![a-zA-Z\u4e00-\u9fff]).*&lt;/p&gt;</p>
<p dir="auto">That worked, except for the underscores…which I think is included with the [a-z][A-Z] aspect of regex, as acceptable characters</p>
</blockquote>
<p dir="auto"><strong>Yes, strange. I try this, but still cannot find _ underscores</strong></p>
<p dir="auto"><code>&lt;p&gt;\s*(?![a-zA-Z\u4e00-\u9fff_]+\s*&lt;\/p&gt;)[^&lt;&gt;]*&lt;\/p&gt;</code><br />
or<br />
<code>&lt;p&gt;\s*(?![a-zA-Z\u4e00-\u9fff_]+\s*&lt;\/p&gt;)[^\w_]*&lt;\/p&gt;</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91445</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91445</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Wed, 27 Dec 2023 08:43:05 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 08:35:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: Hellena-Crainicu">@<bdi>Hellena-Crainicu</bdi></a> said in <a href="/post/91443">Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols</a>:</p>
<blockquote>
<p dir="auto">&lt;p&gt;\s*(?![a-zA-Z\u4e00-\u9fff]).*&lt;/p&gt;</p>
</blockquote>
<p dir="auto">That worked, except for the underscores…which I think is included with the [a-z][A-Z] aspect of regex, as acceptable characters, Nope, that wasn’t an error after all. It didn’t find the underscores, that your “should look like” was asking that it show. For some reason, the underscores are ignored in the search.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91444</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91444</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Wed, 27 Dec 2023 08:35:12 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 08:27:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a> ok</p>
<p dir="auto">I try another way. I believe is good:</p>
<p dir="auto"><code>&lt;p&gt;\s*(?![a-zA-Z\u4e00-\u9fff]).*&lt;/p&gt;</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91443</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91443</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Wed, 27 Dec 2023 08:27:25 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Select all html tags which no contain characters, and onother regex that contain only tags with simbols on Wed, 27 Dec 2023 08:26:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hellena-crainicu" aria-label="Profile: Hellena-Crainicu">@<bdi>Hellena-Crainicu</bdi></a> ,<br />
I’m no guru, but I believe the Kanji(?) characters are still considered characters per regex, aren’t they?  I’m not Unicode proficient, so excuse me if this is irrelevant to the discussion.</p>
<p dir="auto">I tried both regex on the example, and escaping the &lt;/p&gt; with <code>&lt;\/p&gt;</code> worked in the Regex 101 website and NPP…using your first regex, found only the &lt;/p&gt; characters.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91442</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91442</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Wed, 27 Dec 2023 08:26:45 GMT</pubDate></item></channel></rss>