<?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[mass replace diffrent text in file]]></title><description><![CDATA[<p dir="auto">i have a large text file where i would like to replace an extension with regex, help me</p>
<p dir="auto">example</p>
<pre><code>Z site:com
Y site:fr
X site:uk
</code></pre>
<p dir="auto">to:</p>
<pre><code>Z site:pl
Y site:pl
X site:pl
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/20673/mass-replace-diffrent-text-in-file</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 04:26:04 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20673.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Feb 2021 19:32:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mass replace diffrent text in file on Tue, 02 Feb 2021 21:55:02 GMT]]></title><description><![CDATA[<p dir="auto">thanks everyone for your help, i’ve got how to make this work</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62443</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62443</guid><dc:creator><![CDATA[Clyde Parker]]></dc:creator><pubDate>Tue, 02 Feb 2021 21:55:02 GMT</pubDate></item><item><title><![CDATA[Reply to mass replace diffrent text in file on Tue, 02 Feb 2021 21:30:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">To <strong>count</strong> all the lines which contain, <em>at least</em>, <strong>two</strong> <strong><code>:</code></strong> signs, this regex should be enough :</p>
<p dir="auto">SEARCH <strong><code>(?-s):.*:</code></strong></p>
<p dir="auto">Indeed, we do <strong>not</strong> have to care about text <strong>before</strong> the <strong>first</strong> colon and text <strong>after</strong> the <strong>second</strong> colon ;-))</p>
<p dir="auto">And, if you click on the <strong><code>Find Next</code></strong> button it matches all the <strong>range</strong> of characters between these <strong>two</strong> colons, <strong>included</strong> !</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62442</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62442</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 02 Feb 2021 21:30:33 GMT</pubDate></item><item><title><![CDATA[Reply to mass replace diffrent text in file on Tue, 02 Feb 2021 20:00:02 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> said in <a href="/post/62439">mass replace diffrent text in file</a>:</p>
<blockquote>
<p dir="auto">Maybe the OP wants to replace only com, fr, and uk after a :</p>
</blockquote>
<p dir="auto">True, we often deal in ambiguities. The OP will need to expand on request if current solution does NOT meet his needs.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62441</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62441</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 02 Feb 2021 20:00:02 GMT</pubDate></item><item><title><![CDATA[Reply to mass replace diffrent text in file on Tue, 02 Feb 2021 19:59:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/clyde-parker" aria-label="Profile: clyde-parker">@<bdi>clyde-parker</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Again, <strong>fairly</strong> easy :</p>
<p dir="auto">Like <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, I assume just <strong>one</strong> <strong><code>:</code></strong> per line, <strong>followed</strong> with a <strong>country</strong> identifier, <strong>ending</strong> the current line</p>
<p dir="auto">SEARCH <strong><code>(?&lt;=:)\l+</code></strong></p>
<p dir="auto">REPLACE <strong><code>pl</code></strong></p>
<p dir="auto">The <strong>search</strong> regex tries to match the <strong>greatest</strong> range, non <strong>empty</strong>, of <strong>lowercase</strong> letters, which is <strong>immediately</strong> preceded with a <strong>colon</strong> <strong><code>:</code></strong></p>
<p dir="auto">You must use the <strong><code>Replace All</code></strong> button, <strong>exclusively</strong>, if your N++ version is <strong>prior</strong> the <strong><code>v7.9.1</code></strong> version. Else, the <strong><code>Replace</code></strong> button can be used as well ;-))</p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62440</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62440</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 02 Feb 2021 19:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to mass replace diffrent text in file on Tue, 02 Feb 2021 19:59:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">Maybe the OP wants to replace only <code>com</code>, <code>fr</code>, and <code>uk</code> after a <code>:</code>, which is easy to do, but why bother unless the OP clarifies the need.</p>
<p dir="auto">Plus OP is starting to become a “regex taker” and should be requested to show what he’s tried and failed with, before receiving additional help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62439</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62439</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 02 Feb 2021 19:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to mass replace diffrent text in file on Tue, 02 Feb 2021 19:57:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> said in <a href="/post/62437">mass replace diffrent text in file</a>:</p>
<blockquote>
<p dir="auto">PS this assumes there is ONLY 1 : in the line</p>
</blockquote>
<p dir="auto">As a matter of interest the easy way to determine if ANY line has more than 1 <code>:</code> is to run a regex using the “Find” function and using the “Count” button.<br />
So the regex could be (my version, there are many ways to do this)<br />
Find What:<code>(?-s)^([^:]+)*:([^:]+)*:</code></p>
<p dir="auto">Again as a regex the search mode must be “regular expression” and you should either have the cursor at top of file, or make sure “wrap around” is ticked so that it can check the entire content of the file. After clicking the “Count” button the bottom of the “Find” window will show you:<br />
“<strong>Count: xx matches</strong> <em>from caret to end of file</em>” (my setting was not “wrap around”) or “<em>in entire file</em>” and xx is the number 0 or more.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62438</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62438</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 02 Feb 2021 19:57:52 GMT</pubDate></item><item><title><![CDATA[Reply to mass replace diffrent text in file on Tue, 02 Feb 2021 19:41:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/clyde-parker" aria-label="Profile: Clyde-Parker">@<bdi>Clyde-Parker</bdi></a> said in <a href="/post/62435">mass replace diffrent text in file</a>:</p>
<blockquote>
<p dir="auto">where i would like to replace an extension with regex,</p>
</blockquote>
<p dir="auto">Using the Replace function we have<br />
Find What:<code>(?-s)([^:]+).+$</code><br />
Replace With:<code>\1:pl</code><br />
As this is a regex the “search mode” needs to be regular expression. Wrap around can be ticked.</p>
<p dir="auto">You can either hit the “Replace button” to see each change, or the Replace All button to do the entire file in 1 go.</p>
<p dir="auto">Terry</p>
<p dir="auto">PS this assumes there is ONLY 1 <code>:</code> in the line, immediately before the “extension” you wish to change. As you haven’t really shown us “real” data this is assumed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62437</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62437</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 02 Feb 2021 19:41:41 GMT</pubDate></item></channel></rss>