<?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[Find&#x2F;replace]]></title><description><![CDATA[<p dir="auto">Hello. I have a file in which are certain elements with their names. As I want to change names, need the most efficient way to do it.</p>
<p dir="auto">It looks like this: Name=“109 B29/Web 3”<br />
There is about 1000 of these names, but I would like to select all cases under quotation marks that come after <em>Name=</em>, delete first 4 places, and instead of Web 3 put W3.</p>
<p dir="auto">So, <strong>Name=“109 B29/Web 3”</strong> should look like <strong>Name=“B29/W3”</strong>.</p>
<p dir="auto">Is it possible?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27532/find-replace</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 00:37:17 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27532.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 May 2026 23:57:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 16:18:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/balancedcircular" aria-label="Profile: balancedcircular">@<bdi>balancedcircular</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: coises">@<bdi>coises</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I suppose that the <strong>following</strong> regex <strong>S/R</strong> should be <strong>close</strong> to what you want ! I consider the <strong>entire</strong> line because you may have <strong>other</strong> lines with attributes <strong><code>Name</code></strong> and/or <strong><code>Comments</code></strong></p>
<hr />
<p dir="auto">FIND <strong><code>(?-si)^(&lt;RectangularPart Version=.+ Name=")\d\d\d (.+/.).+?(\d")(.+ Comments=").+(?=&gt;)</code></strong></p>
<p dir="auto">REPLACE <strong><code>$1$2$3$4$2$3</code></strong></p>
<p dir="auto">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: coises">@<bdi>coises</bdi></a> said, try this <strong>global</strong> replacement on a <strong>copy</strong> of your file !</p>
<hr />
<p dir="auto">If everything works as <strong>expected</strong>, I’ll explain you, <strong>next</strong> time, how <strong>all</strong> the regex <strong>syntax</strong> means !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto">I almost forgot the <strong>last</strong> line of your post. To <strong>simultaneously</strong> search for any of the <strong>three</strong> words <strong><code>Rafter</code></strong>, <strong><code>C.Tie</code></strong> and <strong><code>Web</code></strong>, simply use the regex <strong><code>(?-i)Rafter|C\.Tie|Web</code></strong></p>
]]></description><link>https://community.notepad-plus-plus.org/post/105450</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105450</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 13 May 2026 16:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 13:38:33 GMT]]></title><description><![CDATA[<p dir="auto">Thank you all for your replies.</p>
<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> honesty is the best approach always, because if you get trapped in lies, it is hard to track what did you say and to whom :)</p>
<p dir="auto">After reading other responses, it should be like this:</p>
<ul>
<li><em>remove 4 characters after quote character</em> - it should remove all characters until a letter B, because it could also be a 4 digit number, or two digits…</li>
<li><em>take characters until a / reached, include this and 1 following character.</em> - ok</li>
<li><em>take the last character before the quote character and include that and the quote.</em> - take numbers before the quote character</li>
<li><em>return the assembled string.</em> - also if possible write it in Comments too.</li>
</ul>
<pre><code>&lt;RectangularPart Version="2.1.6" DimensionY="50" DimensionZ="80" Name="007 B19/Web 3" PartId="7" PartNo="7" ReqQuantity="1" Unit="19" Grade="C24" Comments="FirstFloor"&gt;
</code></pre>
<p dir="auto">It should look like this. So if it is also possible to copy and replace text from Name part to Comments part.</p>
<pre><code>&lt;RectangularPart Version="2.1.6" DimensionY="50" DimensionZ="80" Name="B19/W3" PartId="7" PartNo="7" ReqQuantity="1" Unit="19" Grade="C24" Comments="B19/W3"&gt;
</code></pre>
<pre><code>&lt;RectangularPart Version="2.1.6" DimensionY="50" DimensionZ="120" Name="001 B19/Rafter 1" PartId="1" PartNo="1" ReqQuantity="1" Unit="19" Grade="C24" Comments="FirstFloor"&gt;
</code></pre>
<p dir="auto">Should look like this:</p>
<pre><code>&lt;RectangularPart Version="2.1.6" DimensionY="50" DimensionZ="120" Name="B19/R1" PartId="1" PartNo="1" ReqQuantity="1" Unit="19" Grade="C24" Comments="B19/R1"&gt;
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a><br />
It would be better to omit all characters until capital B.<br />
Keep all, until uppercase W.<br />
Keep all digits.<br />
Copy from Name section to Comment section.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: coises">@<bdi>coises</bdi></a><br />
Tried it, and it works great! But, as I thought a little bit more, there is a possibility for other digits to appear. If it is possible, it would be great to copy from Name to Comments section.</p>
<p dir="auto">Additionally, is it possible to connect two search/replace in one like macro? So, I have Rafter, C.Tie, Web. Is there a way to connect three different searches in one?</p>
<p dir="auto">Thank you all.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105449</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105449</guid><dc:creator><![CDATA[balancedcircular]]></dc:creator><pubDate>Wed, 13 May 2026 13:38:33 GMT</pubDate></item><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 03:51:26 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/balancedcircular" aria-label="Profile: balancedcircular">@<bdi>balancedcircular</bdi></a> <a href="/post/105441">said</a>:</p>
<p dir="auto">Hello. I have a file in which are certain elements with their names. As I want to change names, need the most efficient way to do it.</p>
<p dir="auto">It looks like this: Name=“109 B29/Web 3”<br />
There is about 1000 of these names, but I would like to select all cases under quotation marks that come after <em>Name=</em>, delete first 4 places, and instead of Web 3 put W3.</p>
<p dir="auto">So, <strong>Name=“109 B29/Web 3”</strong> should look like <strong>Name=“B29/W3”</strong>.</p>
<p dir="auto">Is it possible?</p>
</blockquote>
<p dir="auto">Try this:</p>
<ul>
<li>
<p dir="auto">First, <strong>make a backup copy of your file</strong> in case something goes wrong and you don’t notice it right away.</p>
</li>
<li>
<p dir="auto">Open the file in Notepad++.</p>
</li>
<li>
<p dir="auto">Select from the main menu <strong>Search</strong> | <strong>Replace</strong>.</p>
</li>
<li>
<p dir="auto">Fill in the dialog this way:</p>
</li>
</ul>
<p dir="auto"><strong>Find what:</strong> <strong><code>Name="\d\d\d (.*/W)eb\h</code></strong><br />
<strong>Replace with:</strong> <strong><code>Name="$1</code></strong><br />
<strong>Match case</strong> not checked<br />
<strong>Wrap around</strong> checked<br />
<strong>Search Mode</strong>: <strong>Regular expression</strong><br />
<strong>. matches newline</strong> not checked</p>
<ul>
<li>then click <strong>Replace All</strong>.</li>
</ul>
<p dir="auto">Examine carefully and see if that did what you wanted. If it didn’t, make a note of what went wrong, close the file without saving, and tell us what wasn’t right.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105448</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105448</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Wed, 13 May 2026 03:51:26 GMT</pubDate></item><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 08:51:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/balancedcircular" aria-label="Profile: balancedcircular">@<bdi>balancedcircular</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">In other words, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a> suggests that you, both, show us <strong>some</strong> lines which could stand as an <em>INPUT</em> text and some <strong>other</strong> lines which could stand as an <em>OUTPUT</em> text !</p>
<p dir="auto">When inserting these sections, use the <strong><code>&lt;/&gt;</code></strong> icon in your <strong>future</strong> post, to include them as <strong>code</strong> / <strong>raw</strong> text !</p>
<p dir="auto"><img src="/assets/uploads/files/1778634396800-f65d36f1-f1a7-455a-b9a2-8e235626611c-image.jpeg" alt="f65d36f1-f1a7-455a-b9a2-8e235626611c-image.jpeg" class=" img-fluid img-markdown" /></p>
<hr />
<p dir="auto">For example, the <em>INPUT</em> text could be :</p>
<pre><code class="language-diff">Name="109 B29/Web 3"
Name="279 A658/Web 45"
Name="56247 H3/Web 123"
Name="1234 B987/Web 10"
</code></pre>
<p dir="auto">And the <em>OUTPUT</em> text could be :</p>
<pre><code class="language-diff">Name="B29/W3"
Name="A658/W45"
Name="7 H3/W123"
Name=" B987/W10"
</code></pre>
<p dir="auto">Where :</p>
<ul>
<li>
<p dir="auto">The first <strong>four</strong> characters, after the string <strong><code>Name"</code></strong>, are <strong>omitted</strong></p>
</li>
<li>
<p dir="auto">The <strong>next</strong> characters until the <strong><code>slash</code></strong> and the <em>uppercase</em> letter <strong><code>W</code></strong>  are <strong>kept</strong></p>
</li>
<li>
<p dir="auto">All remaining <strong><code>digits</code></strong> and the <strong><code>closing</code></strong> quote are also <strong>kept</strong></p>
</li>
</ul>
<p dir="auto">This is just an example and it’s <strong>up to you</strong> to tell us <strong>all</strong> or , at least, the <em>most</em> cases that may occur !</p>
<hr />
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105447</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105447</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 13 May 2026 08:51:16 GMT</pubDate></item><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 00:22:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/balancedcircular" aria-label="Profile: balancedcircular">@<bdi>balancedcircular</bdi></a></p>
<p dir="auto">We accept that not everyone can suddenly do regex (regular expressions) but admitting it means we will be happy to help. It’s when users just believe we are a source to be used, rather than the assistance and guidance we’d prefer to try.</p>
<p dir="auto">You will however need to read my last post as your detail is lacking in substance. Without it we could be on a wild goose chase wasting time back and forwards.</p>
<p dir="auto">By explaining the transformation to us (and to yourself as you write it) can often show some clarity and maybe you might also be able to achieve it by yourself, or at least get closer to the solution with our help.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105445</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105445</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Wed, 13 May 2026 00:22:57 GMT</pubDate></item><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 00:18:31 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><br />
Well, to be honest, this isn’t my area, so that’s why I tried to ask for help.<br />
To try anything else beside standard find/replace inputs, I need to study manual, but additionally understand meaning of all options. In a stressful lifestyle, time is what I miss the most.</p>
<p dir="auto">If you, or anybody else can guide me, I would be thankful.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105444</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105444</guid><dc:creator><![CDATA[balancedcircular]]></dc:creator><pubDate>Wed, 13 May 2026 00:18:31 GMT</pubDate></item><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 00:17:46 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/balancedcircular" aria-label="Profile: balancedcircular">@<bdi>balancedcircular</bdi></a> <a href="/post/105441">said</a>:</p>
<p dir="auto">So, Name=“109 B29/Web 3” should look like Name=“B29/W3”.</p>
</blockquote>
<p dir="auto">I should also add that you need to insert the original data within a code box. Please read the FAQ post called <code>Template for Search/Replace Questions</code>. In your case the double quotation marks you typed have possibly been converted to another type of quote character. Entering examples in the code box prevents this.</p>
<p dir="auto">You should also elaborate on what the transformation is.<br />
Currently it looks like:</p>
<ol>
<li>remove 4 characters after quote character.</li>
<li>take characters until a <code>/</code> reached, include this and 1 following character.</li>
<li>take the last character before the quote character and include that and the quote.</li>
<li>return the assembled string.</li>
</ol>
<p dir="auto">However since you did not explain the transformation, it could well be for #3, take all numbers and return them (rather than just the last character).</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105443</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105443</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Wed, 13 May 2026 00:17:46 GMT</pubDate></item><item><title><![CDATA[Reply to Find&#x2F;replace on Wed, 13 May 2026 00:01:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/balancedcircular" aria-label="Profile: balancedcircular">@<bdi>balancedcircular</bdi></a></p>
<p dir="auto">It is very easily achieved using regular expressions in Notepad++. Have you tried anything yet?</p>
<p dir="auto">Someone can easily make it for you, but we like to know first if the poster has tried anything first.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105442</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105442</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Wed, 13 May 2026 00:01:43 GMT</pubDate></item></channel></rss>