<?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[I need to add specific keyword at the middle of each 3 lines]]></title><description><![CDATA[<p dir="auto">I need to add specific keyword at the middle of each 3 lines, I mean if i have</p>
<p dir="auto">1111111111111111111<br />
2222222222222222222<br />
3333333333333333333<br />
4444444444444444444<br />
5555555555555555555<br />
6666666666666666666<br />
7777777777777777777<br />
8888888888888888888<br />
9999999999999999999</p>
<p dir="auto">and i want it to be</p>
<p dir="auto">1111111111111111111<br />
2222222222222222222<br />
33333333 keyword 33333333333<br />
4444444444444444444<br />
5555555555555555555<br />
66666666 keyword 6666666666<br />
7777777777777777777<br />
8888888888888888888<br />
99999999 keyword 99999999999</p>
<p dir="auto">How could i do that using notebad++</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25376/i-need-to-add-specific-keyword-at-the-middle-of-each-3-lines</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 09:52:38 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25376.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Jan 2024 13:19:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I need to add specific keyword at the middle of each 3 lines on Wed, 17 Jan 2024 20:39:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faridalabib" aria-label="Profile: faridalabib">@<bdi>faridalabib</bdi></a> - to add to what <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> just posted another thought is to replace with one keyword but then to do a second pass to “mailmerge” the list of desired keywords in place of the single keyword you had added.  See <a href="https://community.notepad-plus-plus.org/topic/22666/how-to-replace-multiple-variables-vs-a-template/2">this other post</a> by  <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> and its follow-up posts on how to do the mailmerge.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92149</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92149</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Wed, 17 Jan 2024 20:39:02 GMT</pubDate></item><item><title><![CDATA[Reply to I need to add specific keyword at the middle of each 3 lines on Wed, 17 Jan 2024 17:01:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faridalabib" aria-label="Profile: faridalabib">@<bdi>faridalabib</bdi></a> ,</p>
<blockquote>
<p dir="auto">if i wanted to add 2 or 3 keywords not just one, how to do that?</p>
</blockquote>
<p dir="auto">Not with built-in Notepad++ regular expressions – at least, not alone.</p>
<p dir="auto">Some users might tell you to put the list of replacements at the end of the file, with some sort of separator (like “=======”) before it, and then come up with some convoluted regular expression.  That requires some manual setup to get it into the right format, and has some limitations depending on how big your file is (because it has to stuff things in memory to get it to work, and the memory has a limited size).</p>
<p dir="auto">Others will suggest coding it in your favorite programming language, and leaving Notepad++ out of the equation.  Or, as a compromise, to use one of the scripting plugins, like the PythonScript plugin – and, in fact, our “mathematical replacement” FAQ has a section on <a href="https://community.notepad-plus-plus.org/topic/23170/faq-can-i-do-a-mathematical-replacement/2#:~:text=REPLACE%20FROM%20A%20SMALL%20LIST%20OF%20VALUES">REPLACE FROM A SMALL LIST OF VALUES</a>, which shows an implementation in PythonScript.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92146</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92146</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 17 Jan 2024 17:01:49 GMT</pubDate></item><item><title><![CDATA[Reply to I need to add specific keyword at the middle of each 3 lines on Tue, 16 Jan 2024 21:15:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> thanks alot for help</p>
<p dir="auto">Do you have idea if i wanted to add 2 or 3 keywords not just one, how to do that?<br />
I mean</p>
<p dir="auto">1111111111111111111<br />
2222222222222222222<br />
33333333 keyword 33333333333<br />
4444444444444444444<br />
5555555555555555555<br />
66666666 keyword2 6666666666<br />
7777777777777777777<br />
8888888888888888888<br />
99999999 keyword3 99999999999</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92137</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92137</guid><dc:creator><![CDATA[faridalabib]]></dc:creator><pubDate>Tue, 16 Jan 2024 21:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to I need to add specific keyword at the middle of each 3 lines on Tue, 16 Jan 2024 13:48:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faridalabib" aria-label="Profile: faridalabib">@<bdi>faridalabib</bdi></a></p>
<p dir="auto">Something like this seems like it would do it:</p>
<p dir="auto">Find: <code>(?-s)(.+\R.+\R.{8})(.+\R)</code><br />
Replace: <code>${1} keyword ${2}</code><br />
Search mode: Regular expression<br />
Options: Wrap around<br />
Action: Replace All</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92127</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92127</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 16 Jan 2024 13:48:13 GMT</pubDate></item></channel></rss>