<?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: Delete group of many &#x5C;&#x5C; on the same line]]></title><description><![CDATA[<p dir="auto">I need a regex to delete all kind of the text below.</p>
<p dir="auto">My regex is not very good, I don;t know why. Can anyone find another solution?</p>
<p dir="auto"><strong>FIND: <code>\\\\u[0-9a-fA-F]{4}.*?\n{2,}</code><br />
Replace by: <code>(Leave empty)</code></strong></p>
<p dir="auto">Text:</p>
<p dir="auto"><code>\\u5361\\u8def\\u91cc\\uff08kcal\\uff09\\n\\n\\n\\n\\n&lt;p&gt;\\u8102\\u80aa\\uff08g\\uff09\\n\\ n\\n\\n\\n&lt;p&gt;\\u78b3\\u6c34\\u5316\\u5408\\u7269\\uff08g\\uff09\\n\\n\\n\\n\\n&lt; p&gt;\\u86cb\\u767d\\u8d28\\uff08g\\uff09\\n\\n\\n\\n\\n&lt;p&gt;\\u81b3\\u98df\\u7ea4\\u7ef4\\uff08g \\uff09\\n\\n\\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;\\u82b1\\u751f\\ n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;567\\n\\n\\n\\n\\n&lt;p&gt; 49.2\\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;16.1\\n\\n\\n\\n\\n &lt;p style=\\\"text-align: center\\\"&gt;25,8\\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\ „&gt;8,5\\n\\n\\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;\\u674f\\u4ec1\\ n\\n\\n\\n\\n&lt;p&gt;579\\n\\n\\n\\n\\n&lt;p&gt;49,9\\n\\n\\n\\n\\ n&lt;p&gt;21,6\\n\\n\\n\\n\\n&lt;p&gt;21,2\\n\\n\\n\\n\\n&lt;p&gt;12,5\\n\\n\ \n\\n\\n\\n\\n&lt;p&gt;\\u8170\\u679c\\n\\n\\n\\n\\n&lt;p&gt;553\\n\\n\\ n\\n\\n&lt;p&gt;43,9\\n\\n\\n\\n\\n&lt;p&gt;30,2\\n\\n\\n\\n\\n&lt;p&gt;18,2\ \n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;3.3\\n\\n\\n\\n\\n\\ n\\n&lt;p style=\\\"text-align: center\\\"&gt;\\u699b\\u5b50\\n\\n\\n\\n\\n&lt;p&gt;628\\n \\n\\n\\n\\n&lt;p&gt;60,8\\n\\n\\n\\n\\n&lt;p&gt;16,7\\n\\n\\n\\n\\n &lt;p&gt;14,9\\n\\n\\n\\n\\n&lt;p&gt;9,7\\n\\n\\n\\n\\n\\n\\n&lt;p stil=\\ \"text-align: center\\\"&gt;\\u590f\\u5a01\\u5937\\u679c\\n\\n\\n\\n\\n&lt;p&gt;718\\n\\n\ \n\\n\\n&lt;p&gt;75,8\\n\\n\\n\\n\\n&lt;p&gt;13,8\\n\\n\\n\\n\\n&lt;p&gt;7,9 \\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;8.6\\n\\n\\n\\n\\n\ \n\\n&lt;p style=\\\"text-align: center\\\"&gt;\\u78a7\\u6839\\u679c\\n\\n\\n\\n\\n&lt;p&gt; 691\\n\\n\\n\\n\\n&lt;p&gt;71,9\\n\\n\\n\\n\\n&lt;p&gt;13,9\\n\\n\\n\\ n\\n&lt;p&gt;9.2\\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;9.6\\n\\n\\ n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;\\u677e\\u5b50\\u4ec1\\n\\n\\n\ \n\\n&lt;p&gt;673\\n\\n\\n\\n\\n&lt;p&gt;68,4\\n\\n\\n\\n\\n&lt;p&gt;13,1\\n \\n\\n\\n\\n&lt;p&gt;13,7\\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;3,7 \\n\\n\\n\\n\\n\\n\\n&lt;p style=\\\"text-align: center\\\"&gt;\\u5f00\\u5fc3\\u679c\\ n\\n\\n\\n\\n&lt;p&gt;560\\n\\n\\n\\n\\n&lt;p&gt;45,3\\n\\n\\n\\n\\ n&lt;p&gt;27,2\\n\\n\\n\\n\\n&lt;p&gt;20,2\\n\\n\\n\\n\\n&lt;p style=\\\"text-align :</code></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25206/regex-delete-group-of-many-on-the-same-line</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 19:08:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25206.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Dec 2023 10:46:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex: Delete group of many &#x5C;&#x5C; on the same line on Tue, 05 Dec 2023 21:39:58 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> I suspect the reason your first expression did not work is that you may have Windows end-of-line with <code>\r\n</code> rather than the Unix style <code>\n</code> end-of-line that your expression expected.  If you use <code>\R</code> then it will match any style of end of line. <code>\R</code> works with Windows, Unix, and Macintosh style end of lines which use <code>\r</code>.</p>
<p dir="auto">If you replaced the <code>\n</code> with <code>\R</code> we have <code>\\\\u[0-9a-fA-F]{4}.*?\R{2,}</code></p>
<p dir="auto">That will match from the first <code>\\uxxxx</code> on to the end of the line followed by two or more end of line marks.  The expression matches your example data if it’s followed by two or more blank lines.</p>
<p dir="auto">In your follow-up you used <code>\\\\.*$</code> implying you had not intended to also include the end-of-line marks as part of the pattern nor the followed-by-blank-line requirement.</p>
<p dir="auto">This will work <code>\\\\u[0-9a-fA-F]{4}.*$</code> though as you probably noticed, the data also includes <code>\\</code> sequences such as <code>\\n</code> which is a newline plus some unusual things such as <code>\\ n</code> with a space between the <code>\\</code> and <code>n</code>.  The underlying HTML that this is intended to decode to is badly formatted meaning it’s likely not worthwhile to fully parse the data.</p>
<p dir="auto">Your <code>\\\\.*$</code> just gets rid of it which is probably good.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/90969</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/90969</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Tue, 05 Dec 2023 21:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Delete group of many &#x5C;&#x5C; on the same line on Tue, 05 Dec 2023 10:51:39 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></p>
<p dir="auto"><strong>FIND: <code>\\\\.*$</code><br />
Replace by: <code>(leave empty)</code></strong></p>
]]></description><link>https://community.notepad-plus-plus.org/post/90953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/90953</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Tue, 05 Dec 2023 10:51:39 GMT</pubDate></item></channel></rss>