<?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 all lines containing characters other than [a-z], [A-Z], and [-]]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">Thanks again in advance:</p>
<p dir="auto">I have a list and I want to delete every line, which contains a character which is not<br />
[a-z], [A-Z], and [-].</p>
<p dir="auto">so:<br />
bl-a<br />
bla<br />
blà<br />
bl%<br />
blo<br />
bló<br />
blO</p>
<p dir="auto">should become</p>
<p dir="auto">bl-a<br />
bla<br />
blo</p>
<p dir="auto">Thank you very much!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16714/regex-delete-all-lines-containing-characters-other-than-a-z-a-z-and</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 12:07:45 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16714.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Nov 2018 09:19:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex: Delete all lines containing characters other than [a-z], [A-Z], and [-] on Thu, 29 Nov 2018 10:25:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/iskandar-the-pupsi" aria-label="Profile: iskandar-the-pupsi">@<bdi>iskandar-the-pupsi</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Use the following regex <strong>S/R</strong> :</p>
<p dir="auto">SEARCH <strong><code>^.*[^A-Za-z\r\n-].*\R</code></strong></p>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">The <strong><code>^</code></strong> symbol ,beginning the <strong>character class</strong>, is the <strong>negation</strong> character</p>
</li>
<li>
<p dir="auto">The <strong><code>-</code></strong> symbol must be located at the <strong>end</strong> of the <strong>character class</strong> as it’s a special** char inside <strong>class character</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>\R</code></strong> syntax matches <strong>any</strong> kind of <strong>line-break</strong></p>
</li>
</ul>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36923</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36923</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 29 Nov 2018 10:25:30 GMT</pubDate></item></channel></rss>