<?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[Delete two characters but not from all columns]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have large files, each includes more than one million rows, so I have to use Notepad++ instead of Excel for the first time! i intend to delete two characters (“12”) from the beginning of ONLY two columns, the first 12 started on 17th and the second 12 started on 53th position.<br />
I was said to use " 12(.+?(?= ))" and replace with " \1", it works well for the first seven columns, but in case of two last columns that have only two characters/values, the “12(.+?(?= ))” will delete all 12s from the 8th columns and make a mess in the last two columns. How can I fix it?<br />
a data row is like:</p>
<pre><code>  669850.832160 12855334.50  6103459.08      912.04 12475334.50  6803459.08      812.06   12   10
</code></pre>
<p dir="auto">I would be appreciated if you could help.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20189/delete-two-characters-but-not-from-all-columns</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 12:36:51 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20189.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Oct 2020 21:33:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Delete two characters but not from all columns on Tue, 20 Oct 2020 22:58:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@Terry-R</a>  OMG thanks a bunch Terry… It worked perfectly. You saved me!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58898</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58898</guid><dc:creator><![CDATA[Farnoosh Aslami]]></dc:creator><pubDate>Tue, 20 Oct 2020 22:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to Delete two characters but not from all columns on Tue, 20 Oct 2020 22:42:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> sorry for any inconvenience… it was my first time and I was unfamiliar with posting a topic… wont be repeated. thanks for your attention.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58896</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58896</guid><dc:creator><![CDATA[Farnoosh Aslami]]></dc:creator><pubDate>Tue, 20 Oct 2020 22:42:41 GMT</pubDate></item><item><title><![CDATA[Reply to Delete two characters but not from all columns on Tue, 20 Oct 2020 22:34:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20147">@Farnoosh-Aslami</a> said in <a href="/post/58892">Delete two characters but not from all columns</a>:</p>
<blockquote>
<p dir="auto">the first 12 started on 17th and the second 12 started on 53th position.</p>
</blockquote>
<p dir="auto">When I copied your example line there appeared to be a difference in the column numbers you supplied (17th and 53rd) and what the example line showed (I get 18th and 53rd for the 1 in each number, or 17th and 52nd if the position immediately before the 1). Because of that I looked at what your current regex does " 12(.+?(?= ))" to see if any adjustment (since it almost worked well enough) could help.<br />
I came up with<br />
<code>\b12(\d+)</code><br />
and keeping the current replacement as <code>\1</code></p>
<p dir="auto">So it will only capture if the <code>12</code> is at the start of a number and ONLY if it is followed by some more numbers. Since you only provide 1 example line there may be other issues. If so please provide more example lines, especially where it does NOT work.</p>
<p dir="auto">If you have issues then a regex (regular expression) could be provided that EXACTLY counts 18 (or 17) and 53 (or 52) and then provides for a replacement.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58895</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 20 Oct 2020 22:34:44 GMT</pubDate></item><item><title><![CDATA[Reply to Delete two characters but not from all columns on Tue, 20 Oct 2020 22:34:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20147">@Farnoosh-Aslami</a> ,</p>
<p dir="auto">In the future, please do not delete the old topic and create a new one about the same question – everyone has now lost the context of what’s already gone before.  Just reply to the old topic with further information.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58894</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58894</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 20 Oct 2020 22:34:40 GMT</pubDate></item></channel></rss>