<?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[how to append the numbers with specific string ??]]></title><description><![CDATA[<p dir="auto">hfshfdohoh kamal from which build the issue is comming need to check it out .<br />
nscknkjnkjdnjknnkjnjd jnnfdnfn kamal from which build the issue is comming need to check it out .<br />
nndnfdoihiofdhoifdhoi dnidihdi nindiididkamal from which build the issue is comming need to check it out .<br />
jbffbufb kamal from which build the issue is comming need to check it out .<br />
hfhfjfj kamal from whickamal from which build the issue is comming need to check it out .<br />
nidididn kamal from which build the issue is comming need to check it out .<br />
nnidnid kamal from which build the issue is comming need to check it out .</p>
<p dir="auto">in the above text ,wherever kamal is there ,kamal 1 ,kamal 2 ,kamal 3 should come …so out put text should be :-</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20462/how-to-append-the-numbers-with-specific-string</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 03:02:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20462.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Dec 2020 07:07:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 19:20:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20664">@kamal-lochan</a> said in <a href="/post/60754">how to append the numbers with specific string ??</a>:</p>
<blockquote>
<p dir="auto">Wherever Kamal string is there i wants to append some number to it .</p>
</blockquote>
<p dir="auto">Here is an alternative option which ONLY involves regular expressions (and the column editor function).</p>
<ol>
<li>
<p dir="auto">replace all CRLF with @@<br />
Place cursor in the first position of the file. Using the Replace function we have<br />
Find What:<code>\R</code><br />
Replace With:<code>@@</code><br />
Search mode is “regular expression”, click on “replace all”</p>
</li>
<li>
<p dir="auto">insert CR &amp; LF before every “kamal” text<br />
Place cursor in the first position of the file. Using the Replace function we have<br />
Find What:<code>(([a-z]+)?kamal)</code><br />
Replace With:<code>\r\n\1</code><br />
Search mode is “regular expression”, click on “replace all”</p>
</li>
<li>
<p dir="auto">insert line numbers and move to behind the “kamal” text<br />
Check if the first line has the “kamal” text, if not position the cursor in the first position of the second line (which does have the “kamal” text). Use column editor and use “number to insert”, starting 1, increase 1 and repeat 1, click OK.</p>
</li>
<li>
<p dir="auto">Now to move the number behind the “kamal” text.<br />
Using the Replace function we have<br />
Find What:<code>^(\d+)[a-z]+)</code><br />
Replace With:<code>\2 \1</code></p>
</li>
<li>
<p dir="auto">recreate the original CRLF and remove the previously inserted ones<br />
Using the Replace function we have<br />
Find What:<code>(@@)|\R</code><br />
Replace With:<code>?1(\r\n)</code></p>
</li>
</ol>
<p dir="auto">I’n not proposing that you use this method as it seems you are well on the way to solving it the “pythonscript” way which is far more sensible. I’m showing you another method which is very simple to understand but as a consequence has a few steps to it.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60785</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60785</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 13 Dec 2020 19:20:07 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 19:15:22 GMT]]></title><description><![CDATA[<p dir="auto">That’s what I wanted to write, but my fingers were faster !</p>
<p dir="auto">Anyway, my preference is always to process the selected text or it via the clipboard, not the entire document.</p>
<p dir="auto">OP, now you know what to do. Go for it !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60784</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60784</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Sun, 13 Dec 2020 19:15:22 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 19:04:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18057">@astrosofista</a> said in <a href="/post/60780">how to append the numbers with specific string ??</a>:</p>
<blockquote>
<p dir="auto">select the text to process and run the script.</p>
</blockquote>
<p dir="auto">Actually, the script runs on the currently-active document (the entire text of the document), <em>not</em> the selected text.  We could change it slightly to do that, but that wasn’t requested.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60782</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60782</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 13 Dec 2020 19:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 18:58:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20664">@kamal-lochan</a></p>
<p dir="auto">Here are some basic hints for getting a Python script to run:</p>
<pre><code class="language-z">https://community.notepad-plus-plus.org/post/54655
</code></pre>
<p dir="auto">Once the script is installed, select the text to process and run the script.</p>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60780</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60780</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Sun, 13 Dec 2020 18:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 16:44:28 GMT]]></title><description><![CDATA[<p dir="auto">![alt text](![image url](<img src="/assets/uploads/files/1607877816553-1.png" alt="1.png" class=" img-fluid img-markdown" /> image url))</p>
<p dir="auto">i am running python scripts in one tab and in other tab my text is present .</p>
<p dir="auto">is thre any thing do i need to do?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60774</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60774</guid><dc:creator><![CDATA[kamal lochan]]></dc:creator><pubDate>Sun, 13 Dec 2020 16:44:28 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 16:25: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> said in <a href="/post/60757">how to append the numbers with specific string ??</a>:</p>
<blockquote>
<p dir="auto">Pythonscript plugin</p>
</blockquote>
<p dir="auto">Can you please share the steps ;<br />
1)where i can run python scripits and how the out put wil come on console ??<br />
Please share the steps+steps scpreen shot if possible</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60772</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60772</guid><dc:creator><![CDATA[kamal lochan]]></dc:creator><pubDate>Sun, 13 Dec 2020 16:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 12:36:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20664">@kamal-lochan</a></p>
<p dir="auto">You will likely have to resort to some sort of programming language solution to make that happen.  Notepad++ supports some scripting languages as plugins which can do it.  An example is the <em>Pythonscript</em> plugin, where the classic example of it is found in the documentation:</p>
<p dir="auto"><img src="/assets/uploads/files/1607862113667-609cb9f6-05ff-4a1b-852a-f6eb41ae3677-image.png" alt="609cb9f6-05ff-4a1b-852a-f6eb41ae3677-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In your case that code would be changed to be a bit more complicated:</p>
<pre><code class="language-z">count = 0

def add_1(m):
    global count
    count += 1
    return ' ' + str(count)

editor.rereplace(r'(?&lt;=kamal)(?! \d)', add_1);
</code></pre>
<p dir="auto">Here’s one of your earlier example sections of “BEFORE” text:</p>
<pre><code class="language-z">hfshfdohoh kamal from which build the issue is comming need to check it out .
nscknkjnkjdnjknnkjnjd jnnfdnfn kamal from which build the issue is comming need to check it out .
nndnfdoihiofdhoifdhoi dnidihdi nindiididkamal from which build the issue is comming need to check it out .
jbffbufb kamal from which build the issue is comming need to check it out .
hfhfjfj kamal from whickamal from which build the issue is comming need to check it out .
nidididn kamal from which build the issue is comming need to check it out .
nnidnid kamal from which build the issue is comming need to check it out .
</code></pre>
<p dir="auto">Here’s what the “AFTER” text looks like after running that script on it:</p>
<pre><code class="language-z">hfshfdohoh kamal 1 from which build the issue is comming need to check it out .
nscknkjnkjdnjknnkjnjd jnnfdnfn kamal 2 from which build the issue is comming need to check it out .
nndnfdoihiofdhoifdhoi dnidihdi nindiididkamal 3 from which build the issue is comming need to check it out .
jbffbufb kamal 4 from which build the issue is comming need to check it out .
hfhfjfj kamal 5 from whickamal 6 from which build the issue is comming need to check it out .
nidididn kamal 7 from which build the issue is comming need to check it out .
nnidnid kamal 8 from which build the issue is comming need to check it out .
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/60757</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60757</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 13 Dec 2020 12:36:00 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 12:05:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20664">@kamal-lochan</a> said in <a href="/post/60753">how to append the numbers with specific string ??</a>:</p>
<blockquote>
<p dir="auto">change</p>
</blockquote>
<p dir="auto">Wherever Kamal string is there i wants to append some number to it .example first time kamal string appeared so i will replace it kamal 1 and for 2nd time kamal string appeared i will replace it kamal 2 and 3rd time kamal 3 and so on …how can i do that .</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60754</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60754</guid><dc:creator><![CDATA[kamal lochan]]></dc:creator><pubDate>Sun, 13 Dec 2020 12:05:39 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 10:56:33 GMT]]></title><description><![CDATA[<p dir="auto">BEFORE:<br />
abc xyg kamal typ kamal plo kamal 90u kamal</p>
<p dir="auto">zxcv kamal rdfd kamal File kamal kamal opd</p>
<p dir="auto">AFTER:i wants below output<br />
abc xyg kamal 1 typ kamal 2 plo kamal 3 90u kamal 4</p>
<p dir="auto">zxcv kamal 5 rdfd kamal 6 File kamal 7 kamal 8 opd</p>
<p dir="auto">in the above text ,i wants to change kamal string to kamal 1 and then kamal 2 and then kamal 3 and then kamal 4 .</p>
<p dir="auto">how can i do that .??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60753</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60753</guid><dc:creator><![CDATA[kamal lochan]]></dc:creator><pubDate>Sun, 13 Dec 2020 10:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 08:36:03 GMT]]></title><description><![CDATA[<h1>BEFORE:</h1>
<p dir="auto">abc xyg kamal typ kamal  plo kamal 90u kamal</p>
<p dir="auto">zxcv kamal  rdfd kamal  File kamal  kamal  opd</p>
<h1>AFTER:i wants below output</h1>
<p dir="auto">abc xyg kamal 1 typ kamal 2  plo kamal 3 90u kamal 4</p>
<p dir="auto">zxcv kamal 5 rdfd kamal 6  File kamal 7 kamal 8 opd</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60752</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60752</guid><dc:creator><![CDATA[kamal lochan]]></dc:creator><pubDate>Sun, 13 Dec 2020 08:36:03 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 07:29:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20664">@kamal-lochan</a> said in <a href="/post/60749">how to append the numbers with specific string ??</a>:</p>
<blockquote>
<p dir="auto">in the above text ,wherever kamal is there ,kamal 1 ,kamal 2 ,kamal 3 should come …so out put text should be :-</p>
</blockquote>
<p dir="auto">Your examples are not consistent. With one you have the numbers forming part of the word. In the other you have the number trailing the word with a space between.</p>
<p dir="auto">Please repost your before and after examples by inserting them into this thread. Then select each group (before and after) separately and use the <code>&lt;/&gt;</code> button above the window so that the before and after examples appear in separate black boxes. This helps to prevent any characters being altered by the posting window.</p>
<p dir="auto">Also be aware that any solution given will work on the word supplied, I.e. kamal. If this is not the real word you need to explain exactly what you really want. Are there always 4 of the same word on each line, or could this be different, say 1 on a line followed by 3 on the next and a different number on the third. As much detail as you can provide will give us a better chance of providing the optimal solution.</p>
<p dir="auto">Please don’t create a new thread, just reply in this thread as all these posts are about the 1 subject matter.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60751</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60751</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 13 Dec 2020 07:29:58 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 07:08:47 GMT]]></title><description><![CDATA[<p dir="auto">another example:<br />
input text:<br />
kamal kamal kamal kamal</p>
<p dir="auto">kamal kamal kamal kamal</p>
<p dir="auto">output text:<br />
kamal 1 kamal 2 kamal 3 kamal 4</p>
<p dir="auto">kamal 5 kamal 6 kamal 7 kamal 8</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60750</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60750</guid><dc:creator><![CDATA[kamal lochan]]></dc:creator><pubDate>Sun, 13 Dec 2020 07:08:47 GMT</pubDate></item><item><title><![CDATA[Reply to how to append the numbers with specific string ?? on Sun, 13 Dec 2020 07:07:59 GMT]]></title><description><![CDATA[<p dir="auto">hfshfdohoh kamal from which build the issue is comming need to check it out .<br />
nscknkjnkjdnjknnkjnjd jnnfdnfn kamal from which build the issue is comming need to check it out .<br />
nndnfdoihiofdhoifdhoi dnidihdi nindiididkamal from which build the issue is comming need to check it out .<br />
jbffbufb kamal from which build the issue is comming need to check it out .<br />
hfhfjfj kamal from whickamal from which build the issue is comming need to check it out .<br />
nidididn kamal from which build the issue is comming need to check it out .<br />
nnidnid kamal from which build the issue is comming need to check it out .</p>
<p dir="auto">in the above text ,wherever kamal is there ,kamal 1 ,kamal 2 ,kamal 3 should come …so out put text should be :-</p>
<p dir="auto">output text:<br />
hfshfdohoh kamal1 from which build the issue is comming need to check it out .<br />
nscknkjnkjdnjknnkjnjd jnnfdnfn kamal2 from which build the issue is comming need to check it out .<br />
nndnfdoihiofdhoifdhoi dnidihdi nindiidid kamal3 from which build the issue is comming need to check it out .<br />
jbffbufb kamal4 from which build the issue is comming need to check it out .<br />
hfhfjfj kamal5 from whickamal from which build the issue is comming need to check it out .<br />
nidididn kamal6 from which build the issue is comming need to check it out .<br />
nnidnid kamal7 from which build the issue is comming need to check it out .</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60749</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60749</guid><dc:creator><![CDATA[kamal lochan]]></dc:creator><pubDate>Sun, 13 Dec 2020 07:07:59 GMT</pubDate></item></channel></rss>