<?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[Help - Multiple replacement - Vertical text]]></title><description><![CDATA[<p dir="auto">Hi guys, I have a problem , I am trying to do a multiple replacement in a text like this:<br />
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;<br />
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;<br />
&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;<br />
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;<br />
I want to replace those names for numeric codes so I am doing a multiple replacement with the “multiline find and replace” plug in and also regular expresions, looks like this:<br />
Find Box:<br />
(&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;)|<br />
(&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;)|<br />
(&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;)|<br />
(&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;)|</p>
<p dir="auto">Replace Box:<br />
(?1&lt;MANUFACTURER_PID&gt;07498358092&lt;/MANUFACTURER_PID&gt;)<br />
(?2&lt;MANUFACTURER_PID&gt;07498311593&lt;/MANUFACTURER_PID&gt;)<br />
(?3&lt;MANUFACTURER_PID&gt;07498319913&lt;/MANUFACTURER_PID&gt;)<br />
(?4&lt;MANUFACTURER_PID&gt;07498351833&lt;/MANUFACTURER_PID&gt;)</p>
<p dir="auto">the problem is that I get empty spaces added after each line replaced, is there any way to avoid that???<br />
help please!!.<br />
Note: I need the pipe symbol | because the original lines may not be right after each other (there maybe text in between each line)<br />
Also it is important to mention that my text is sorted in vertical just like I put it here.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15333/help-multiple-replacement-vertical-text</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 11:57:34 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15333.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Feb 2018 23:23:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help - Multiple replacement - Vertical text on Wed, 28 Feb 2018 19:19:35 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-eduardo-martinez-ruiz" aria-label="Profile: luis-eduardo-martinez-ruiz">@<bdi>luis-eduardo-martinez-ruiz</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">Indeed, <strong>Scott</strong> gave you the <strong>right</strong> link to the <strong>related</strong> discussion to your problem ! But, as this discussion contains <strong>many</strong> posts and as you could be a bit “lost”, I think that I’m able to build a <strong>suitable</strong> regex for your needs :-))</p>
<hr />
<p dir="auto">You said, in your <strong>first</strong> post :</p>
<blockquote>
<p dir="auto">I want to replace those <strong>names</strong> for <strong>numeric codes</strong></p>
</blockquote>
<p dir="auto">And you gave an example, with 4 <strong>forenames</strong> ( I just copied <strong>real</strong> text ! ) :</p>
<pre><code class="language-diff">&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;
....
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;
...
&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;
...
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;
</code></pre>
<p dir="auto">which have to be replaced by the 4 <strong>numeric codes</strong> ( Again, I just copied <strong>real</strong> text, not the regex ! ) :</p>
<pre><code class="language-diff">&lt;MANUFACTURER_PID&gt;07498358092&lt;/MANUFACTURER_PID&gt;
...
&lt;MANUFACTURER_PID&gt;07498311593&lt;/MANUFACTURER_PID&gt;
...
&lt;MANUFACTURER_PID&gt;07498319913&lt;/MANUFACTURER_PID&gt;
...
&lt;MANUFACTURER_PID&gt;07498351833&lt;/MANUFACTURER_PID&gt;
</code></pre>
<hr />
<p dir="auto">So I suppose that you have a <strong>specific</strong> file which <strong>links up</strong> these <strong>forenames</strong> to the <strong>numeric codes</strong>, and vice-versa. I mean, a file like that :</p>
<pre><code class="language-diff">Luis : 07498358092
Rosa : 07498311593
Ernesto : 07498319913
Matias : 07498351833
</code></pre>
<p dir="auto">or, may be, like that :</p>
<pre><code class="language-diff">07498358092 = Luis
07498311593 = Rosa
07498319913 = Ernesto
07498351833 = Matias
</code></pre>
<p dir="auto">Just tell me the <strong>structure</strong> of this <strong>specific</strong>  file ( that I call the <strong>links</strong> file ), and we’ll be able to get the right <strong>regex</strong> S/R, which allows the change of <strong>any number</strong> of names, possibly <strong>repeated</strong>, with their <strong>respective</strong> numeric codes ( even 52000 items ! ) in <strong>one</strong> step, only :-))</p>
<p dir="auto"><strong>Remarks</strong> :</p>
<ul>
<li>
<p dir="auto"><strong>ONE</strong> condition is <strong>mandatory</strong> : In this <strong>links</strong> file, all the <strong>names</strong> and <strong>numeric codes</strong> must be <strong>UNIQUE</strong> !</p>
</li>
<li>
<p dir="auto">The <strong>order</strong> of names, in the <strong>initial</strong> text, can be <strong>completely</strong> different than the <strong>order</strong> they occur, in the <strong>links</strong> file. No  problem !</p>
</li>
<li>
<p dir="auto">And, as I said above, some names may be <strong>repeated</strong>, in the text to be <strong>changed</strong>. No problem, too !</p>
</li>
</ul>
<p dir="auto">See you later,</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30649</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30649</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 28 Feb 2018 19:19:35 GMT</pubDate></item><item><title><![CDATA[Reply to Help - Multiple replacement - Vertical text on Wed, 28 Feb 2018 13:01:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-eduardo-martinez-ruiz" aria-label="Profile: Luis-Eduardo-Martinez-Ruiz">@<bdi>Luis-Eduardo-Martinez-Ruiz</bdi></a></p>
<p dir="auto">If I’m interpreting you correctly then see if this thread helps you:  <a href="https://notepad-plus-plus.org/community/topic/14548/help-replacing" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/14548/help-replacing</a></p>
<p dir="auto">If it doesn’t, post again here…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30640</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30640</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 28 Feb 2018 13:01:27 GMT</pubDate></item><item><title><![CDATA[Reply to Help - Multiple replacement - Vertical text on Tue, 27 Feb 2018 22:19:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi Scott, thanks again for taking time for my post. I think that I know why we get differet results.<br />
I am sorting my data in the find and replace boxes also in a vertical way, I have tried what you said and you are correct there are not empty lines added but when I do it my way I get the extra empty lines.</p>
<p dir="auto">now let me explain why I go this way. I am working with a very large XML file, it has mmillions of lines. the lines that I want to replace are among many many lines that I don’t want to touch.<br />
to be clear there are 51200 lines that I want to replace, those are like the ones in my examples. I need to replace them with other 51200 lines that instead of having names like Rosa, Luis, etc. they have numeric codes just like the examples.</p>
<p dir="auto">I would go as you say placing the text in the find box like this:<br />
(&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;)|(&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;)| ETC…<br />
in a horizontal way and doing the same in the same in the replace box like this:<br />
(?1&lt;MANUFACTURER_PID&gt;07498358092&lt;/MANUFACTURER_PID&gt;)(?2&lt;MANUFACTURER_PID&gt;07498311593&lt;/MANUFACTURER_PID&gt;)…</p>
<p dir="auto">but as I mentioned I have to put in there in the find and also in the replace boxe 51200 pieces of text so I have no way to do that.<br />
in this forum I am not able to attach anything but I will try to generate links fot the files I am working with so maybe you can take a look.</p>
<p dir="auto">thanks a lot</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30629</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30629</guid><dc:creator><![CDATA[Luis Eduardo Martinez Ruiz]]></dc:creator><pubDate>Tue, 27 Feb 2018 22:19:54 GMT</pubDate></item><item><title><![CDATA[Reply to Help - Multiple replacement - Vertical text on Tue, 27 Feb 2018 17:00:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-eduardo-martinez-ruiz" aria-label="Profile: Luis-Eduardo-Martinez-Ruiz">@<bdi>Luis-Eduardo-Martinez-Ruiz</bdi></a></p>
<p dir="auto">I did NOT suggest sorting lines…maybe we have a language barrier.</p>
<p dir="auto">If I start with these lines:</p>
<pre><code class="language-z">&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;
&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;
</code></pre>
<p dir="auto">and do the replacement I suggested above (which isn’t really different from your original one), I get this (which looks correct and has <strong>no</strong> empty lines):</p>
<p dir="auto"><img src="https://i.imgur.com/XncOlhY.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">So without more information I can’t say what is going wrong for you.  :-(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30618</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30618</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Tue, 27 Feb 2018 17:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to Help - Multiple replacement - Vertical text on Tue, 27 Feb 2018 16:49:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi  Scott Sumner, thanks a lot for taking time to see my post, what I mean is that my text is in vertical position like this:<br />
&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;<br />
&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;<br />
not like this:</p>
<p dir="auto">(&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;)|(&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;) etc.</p>
<p dir="auto">the replacement works but when I do it I get empty lines in between like this:</p>
<p dir="auto">&lt;MANUFACTURER_PID&gt;012345678910&lt;/MANUFACTURER_PID&gt;</p>
<p dir="auto">&lt;MANUFACTURER_PID&gt;012345678911&lt;/MANUFACTURER_PID&gt;</p>
<p dir="auto">I cannnot sort my text in a horizontal way like you mentioned because is part of a very large XML file</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30617</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30617</guid><dc:creator><![CDATA[Luis Eduardo Martinez Ruiz]]></dc:creator><pubDate>Tue, 27 Feb 2018 16:49:28 GMT</pubDate></item><item><title><![CDATA[Reply to Help - Multiple replacement - Vertical text on Tue, 27 Feb 2018 12:42:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-eduardo-martinez-ruiz" aria-label="Profile: Luis-Eduardo-Martinez-Ruiz">@<bdi>Luis-Eduardo-Martinez-Ruiz</bdi></a>:</p>
<p dir="auto">Your replacement works for me pretty much as you stated it.  This may be a key point as to why it isn’t working:</p>
<blockquote>
<p dir="auto">important to mention that my text is sorted in vertical just like I put it here</p>
</blockquote>
<p dir="auto">…but I don’t understand what it means.</p>
<p dir="auto">I used your data with these exact fields for regex replacement:</p>
<p dir="auto"><strong>Find what</strong>:</p>
<pre><code class="language-z">(&lt;MANUFACTURER_PID&gt;Luis&lt;/MANUFACTURER_PID&gt;)|(&lt;MANUFACTURER_PID&gt;Rosa&lt;/MANUFACTURER_PID&gt;)|(&lt;MANUFACTURER_PID&gt;Ernesto&lt;/MANUFACTURER_PID&gt;)|(&lt;MANUFACTURER_PID&gt;Matias&lt;/MANUFACTURER_PID&gt;)
</code></pre>
<p dir="auto"><strong>Replace with</strong>:</p>
<pre><code class="language-z">(?1&lt;MANUFACTURER_PID&gt;07498358092&lt;/MANUFACTURER_PID&gt;)(?2&lt;MANUFACTURER_PID&gt;07498311593&lt;/MANUFACTURER_PID&gt;)(?3&lt;MANUFACTURER_PID&gt;07498319913&lt;/MANUFACTURER_PID&gt;)(?4&lt;MANUFACTURER_PID&gt;07498351833&lt;/MANUFACTURER_PID&gt;)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/30611</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30611</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Tue, 27 Feb 2018 12:42:58 GMT</pubDate></item></channel></rss>