<?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[remove letters only in text]]></title><description><![CDATA[<p dir="auto">Hi everyone,<br />
I am trying to remove “only letters” from a text that has characters, spaces, and numbers"<br />
for example:</p>
<pre><code>just some text 1:2:3
some 1|2|3 text
text        123
123 some other text
</code></pre>
<p dir="auto">to became:</p>
<pre><code> 1:2:3
 1|2|3 
        123
123
</code></pre>
<p dir="auto">I tried some online code but it does remove everything excepts numbers including characters " <strong>:</strong>  " and " <strong>|</strong> " and (<strong>spaces</strong>)<br />
thank you</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21235/remove-letters-only-in-text</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 01:17:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21235.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 May 2021 18:24:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to remove letters only in text on Fri, 28 May 2021 18:41:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/66421">remove letters only in text</a>:</p>
<blockquote>
<p dir="auto">&lsqb;&lsqb;:alpha:&rsqb;&rsqb;</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> It worked<br />
Thank you! and for the explanation I will try to learn from it</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66422</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66422</guid><dc:creator><![CDATA[Handa Flocka]]></dc:creator><pubDate>Fri, 28 May 2021 18:41:33 GMT</pubDate></item><item><title><![CDATA[Reply to remove letters only in text on Fri, 28 May 2021 18:34:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/handa-flocka" aria-label="Profile: Handa-Flocka">@<bdi>Handa-Flocka</bdi></a> ,</p>
<blockquote>
<p dir="auto">I tried some online code but it does remove everything excepts numbers including characters " : " and " | " and (spaces)</p>
</blockquote>
<p dir="auto">When asking for search-and-replace advice, show us what you’ve already tried (don’t just say “I tried some online code”).</p>
<p dir="auto">The official docs tell you about each of the character classes (<a href="https://npp-user-manual.org/docs/searching/#character-classes" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#character-classes</a>).  Since you are wanting to delete letters only (not numbers or punctuation) there are two reasonable classes you could use; the first would be <code>[\u\l]</code> which matches any uppercase or lowercase character; the second would be to used the named class <code>&lsqb;&lsqb;:alpha:&rsqb;&rsqb;</code>.</p>
<p dir="auto">So you would do your search/replace as:</p>
<ul>
<li>Search Mode = regular expression</li>
<li>FIND = <code>&lsqb;&lsqb;:alpha:&rsqb;&rsqb;</code> or <code>[\u\l]</code></li>
<li>REPLACE = (leave it empty)</li>
</ul>
<p dir="auto">-—</p>
<p dir="auto"><em>Do you want regex search/replace help?  Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you.  All example text should be marked as literal text using the <code>&lt;/&gt;</code> toolbar button or manual <a href="https://community.notepad-plus-plus.org/topic/14262/how-to-markdown-code-on-this-forum/4">Markdown syntax</a>. To make <code>regex in red</code> (and so they keep their special characters like *), use backticks, like <code>`^.*?blah.*?\z`</code>. Screenshots can be pasted from the clipboard to your post using <code>Ctrl+V</code> to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have <strong>and</strong> the text you want to get from that data; include examples of things that <strong>should match</strong> and be transformed, <strong>and</strong> things that <strong>don’t match</strong> and should be left alone; show <strong>edge cases</strong> and make sure you examples are as <strong>varied</strong> as your real data.  Show the regex you already tried, <strong>and why</strong> you thought it should work; tell us what’s wrong with what you <strong>do</strong> get. Read the official <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">NPP Searching / Regex docs</a> and the forum’s <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">Regular Expression FAQ</a>. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/66421</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66421</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 28 May 2021 18:34:08 GMT</pubDate></item></channel></rss>