<?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[Replace specific part of the line AFTER the match]]></title><description><![CDATA[<p dir="auto">Hello guys,<br />
could you please help me with this little editing problem?<br />
A have text file, in which I need to find all hits of a specific string and then I need to edit a part of the line which follows the searched string. Text file is formatted so the positions on the line of the searched and to-be-replaced strings are the same.<br />
Is it somehow possible with regular expressions?<br />
Thank you very much!</p>
<p dir="auto"><img src="/assets/uploads/files/1626254113062-484116b9-e4a1-47d5-883b-8575397d5427-image.png" alt="484116b9-e4a1-47d5-883b-8575397d5427-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21482/replace-specific-part-of-the-line-after-the-match</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 00:15:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21482.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Jul 2021 09:18:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace specific part of the line AFTER the match on Wed, 14 Jul 2021 12:46:33 GMT]]></title><description><![CDATA[<p dir="auto">@Hynek-Kalhous - no problem, happy to help. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67879</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67879</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 14 Jul 2021 12:46:33 GMT</pubDate></item><item><title><![CDATA[Reply to Replace specific part of the line AFTER the match on Wed, 14 Jul 2021 12:37:47 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for answering my dumb questions! It all worked well.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67878</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67878</guid><dc:creator><![CDATA[PESTICIDer]]></dc:creator><pubDate>Wed, 14 Jul 2021 12:37:47 GMT</pubDate></item><item><title><![CDATA[Reply to Replace specific part of the line AFTER the match on Wed, 14 Jul 2021 10:04:40 GMT]]></title><description><![CDATA[<p dir="auto">@Hynek-Kalhous</p>
<p dir="auto">yes, replace <code>.{5}</code> by that specific number.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67874</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67874</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 14 Jul 2021 10:04:40 GMT</pubDate></item><item><title><![CDATA[Reply to Replace specific part of the line AFTER the match on Wed, 14 Jul 2021 09:54:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/67870">Replace specific part of the line AFTER the match</a>:</p>
<blockquote>
<p dir="auto">(?&lt;=Z115 65241.{XXX}).{5}</p>
</blockquote>
<p dir="auto">Thank you very much! It will do the job.<br />
But…would it be possible to improve it a little bit? It would be nice to have one condition there - I would like to replace the 5 characters only if they have specific value. Is it possible to do it somehow easily?<br />
Thanks again!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67872</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67872</guid><dc:creator><![CDATA[PESTICIDer]]></dc:creator><pubDate>Wed, 14 Jul 2021 09:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to Replace specific part of the line AFTER the match on Wed, 14 Jul 2021 09:29:17 GMT]]></title><description><![CDATA[<p dir="auto">@Hynek-Kalhous</p>
<p dir="auto">Yes, if your search string is unique and the number of digits<br />
between the search term and the term to be replaced is<br />
consistent, you can do something like this</p>
<p dir="auto">find: <code>(?&lt;=Z115 65241.{XXX}).{5}</code><br />
replace: <code>WHATEVER</code></p>
<p dir="auto">That would mean I search for <code>Z115 65241</code> and the following<br />
XXX (must be replaced by your concrete number) characters<br />
and get the next 5 characters (<code>.{5}</code> like 82302), which I replace by <code>whatever</code>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67870</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67870</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 14 Jul 2021 09:29:17 GMT</pubDate></item></channel></rss>