<?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[Select every 3rd character. Then delete them. How can I do this?]]></title><description><![CDATA[<p dir="auto">I have only one really long line and I want to<br />
Select every 3rd character. Then delete them. The characters could be anything.<br />
How would i do that?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17415/select-every-3rd-character-then-delete-them-how-can-i-do-this</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 01:39:59 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17415.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Apr 2019 01:29:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 21:17:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a></p>
<p dir="auto">you are absolutely correct.</p>
<p dir="auto">this happened due to posting inline code in between ` characters.<br />
please press edit on my post and you will see <strong>three spaces</strong> instead of <strong>one</strong> when copying the line.</p>
<p dir="auto">good to know that we must <strong>avoid inline coding when posting more than one whitespace</strong>, thanks for making me have a look at that 👍<br />
(maybe this happened in the past as well to others, and was the reason why users could not achieve the same, verified results as we do, making us wonder why)</p>
<p dir="auto">apparently this is a limitation of nodebb not rendering nbsp’s on the canvas when using inline span of code highlighting.</p>
<p dir="auto">original sample code:</p>
<pre><code>before:
abc123ABC123+#*123   123

after:
ab12AB12+#12  12
</code></pre>
<p dir="auto">ps: my apologies, from now on i will re-copy-paste from a post back to notepad++ to verify a successful, reproducible experience for the op.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42030</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42030</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 07 Apr 2019 21:17:37 GMT</pubDate></item><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 20:01:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14924">@hye-kan-chu</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@meta-chuh</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@ekopalypse</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@meta-chuh</a> :</p>
<p dir="auto">Just a <strong>small</strong> mistake ! Using your <strong>regex</strong> S/R :</p>
<p dir="auto">SEARCH <strong><code>(.?.?)(.?)</code></strong></p>
<p dir="auto">REPLACE <strong><code>$1</code></strong></p>
<p dir="auto">Against your <strong>second</strong> example <strong><code>abc123ABC123+#*123 123</code></strong> does give :</p>
<p dir="auto"><strong><code>ab12AB12+#12 13</code></strong> ( and <strong>not</strong> <strong><code>ab12AB12+#12 12</code></strong> ! )</p>
<p dir="auto">Using the <strong>following</strong> S/R also gives the <strong>same</strong> results :</p>
<p dir="auto">SEARCH <strong><code>(..).</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1</code></strong></p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42026</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42026</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 07 Apr 2019 20:01:46 GMT</pubDate></item><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 19:58:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@Meta-Chuh</a></p>
<p dir="auto">thank you for clarification, very much appreciated.<br />
I always have that kind of feeling that I’ve missed something when I see someone<br />
doing something which I haven’t expected especially in areas where I think I didn’t<br />
really understand most of it. ;-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42025</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42025</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sun, 07 Apr 2019 19:58:09 GMT</pubDate></item><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 18:31:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">the following things are supposedly relevant:</p>
<p dir="auto">does it work ?<br />
does it do the job ?<br />
does the syntax produce any issues ?</p>
<p dir="auto">as long as the answers are yes, yes, no, it should be fine.<br />
if you disagree: i’ve already told eko that he is absolutely correct, so take this answer for you too if you like.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42022</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42022</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 07 Apr 2019 18:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 16:21:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@Meta-Chuh</a></p>
<p dir="auto">I fully understand the reason for using extra <code>(</code> and <code>)</code>.  But, and I think I’m agreeing with Eko here, the <code>?</code> doesn’t make much sense for the problem statement. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42019</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42019</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 07 Apr 2019 16:21:51 GMT</pubDate></item><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 14:38:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a></p>
<p dir="auto">yes, you are absolutely correct.</p>
<p dir="auto">no special reason, just accustomed to using the same full syntax modules for everything for my own readability, even if unnecessary if the op doesn’t request more.<br />
hence also the second (), to be able to use $2 without changing the preg_match, if needed in the future.</p>
<p dir="auto">maybe this is typical for me and other pcre php people to easily read and modify pregs on web servers, so you might see very long preg replaces, where you know they can be simplified a lot, but they are perhaps more modular for adaptations than a simplified version.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42016</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42016</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 07 Apr 2019 14:38:35 GMT</pubDate></item><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 12:13:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@Meta-Chuh</a></p>
<p dir="auto">may I ask you why you used the <code>?</code> in find what?<br />
It can’t be a non-greedy operator as there is no multiply operator like <code>*</code> or <code>+</code>, can it be?<br />
As a dot denotes a single match this <code>(..).</code> should be sufficient, shouldn’t it?<br />
I know, with regex there are multiple ways to achieve what you want but I<br />
didn’t expect the <code>?</code> usage so I’m really curious if this was on purpose and what the reason is.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42011</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42011</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sun, 07 Apr 2019 12:13:05 GMT</pubDate></item><item><title><![CDATA[Reply to Select every 3rd character. Then delete them. How can I do this? on Sun, 07 Apr 2019 09:12:09 GMT]]></title><description><![CDATA[<p dir="auto">welcome to the notepad++ community, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14924">@Hye-Kan-Chu</a></p>
<p dir="auto">here’s a little regex to remove every 3rd character of a long line:</p>
<ul>
<li>make a test copy of your file to try this out.</li>
<li>go to the notepad++ menu <code>search &gt; replace</code> and enter the following:</li>
</ul>
<p dir="auto">find what: <code>(.?.?)(.?)</code><br />
replace with: <code>$1</code><br />
wrap around: enabled<br />
search mode: regular expression</p>
<ul>
<li>then hit <code>replace all</code></li>
</ul>
<p dir="auto">a line like <code>123123123123123</code> will now look like this: <code>1212121212</code>.<br />
or a line like <code>abc123ABC123+#*123   123</code> like this: <code>ab12AB12+#12  12</code>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42004</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42004</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 07 Apr 2019 09:12:09 GMT</pubDate></item></channel></rss>