<?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 in files]]></title><description><![CDATA[<p dir="auto">Hi, I have hundreds of files (text files with an extension .ini) in which I would like to erase any occurence of _**** in a string. Example B_013, B_010, or A_0001 etc . After _ we have between 1 to 5 digits maximum. I know it is possible, but I do not know how to proceed. Thanks beforehand for your help.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25786/find-in-files</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 16:45:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25786.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 May 2024 12:47:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 15:30:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wojh8547tg" aria-label="Profile: wojh8547tg">@<bdi>wojh8547tg</bdi></a> said in <a href="/post/94857">Find in files</a>:</p>
<blockquote>
<p dir="auto">I just had to write it like this:<br />
^(ParteNumero||OKE_ID||OKE_IDCODE).*\K_\d{1,5}</p>
<p dir="auto">Double || because | was part of the name.</p>
</blockquote>
<p dir="auto">You apparently didn’t read my answer.  Double <code>||</code> means “ParteNumero OR nothing or OKE_ID or nothing or OKE_IDCODE”  Since those groups can contain “nothing”, you will once again match more than you expect to match.</p>
<p dir="auto">as I said before, <strong>if you want to match a literal <code>|</code> , you need to have <code>\|</code> in your regex</strong>.  I even gave you an example of how to use it, but you chose to ignore me.  Good luck with that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94858</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94858</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 16 May 2024 15:30:11 GMT</pubDate></item><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 15:09:15 GMT]]></title><description><![CDATA[<p dir="auto">Beautiful !<br />
I just had to write it like this:<br />
^(ParteNumero||OKE_ID||OKE_IDCODE).*\K_\d{1,5}</p>
<p dir="auto">Double || because | was part of the name.<br />
Thanks Peter.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94857</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94857</guid><dc:creator><![CDATA[wojh8547tg]]></dc:creator><pubDate>Thu, 16 May 2024 15:09:15 GMT</pubDate></item><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 14:43:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wojh8547tg" aria-label="Profile: wojh8547tg">@<bdi>wojh8547tg</bdi></a> ,</p>
<p dir="auto">FIND = <code>^(ParteNumero|OKE_ID|OKE_IDCODE).*\K_\d{1,5}</code><br />
REPLACE WITH = &lt;leave empty&gt;<br />
SEARCH MODE = Regular Expression</p>
<p dir="auto">In the new stuff:</p>
<ul>
<li>the <code>^</code> means “line must start with what comes next”.</li>
<li>the <code>|</code> means “OR”, so <code>ParteNumero OR OKE_ID OR OKE_IDCODE</code> .</li>
<li>the <code>(</code>parentheses<code>)</code> are for making a “group”.</li>
<li>the <code>.*</code> means allow anything between.</li>
<li>the <code>\K</code> means “start the replacement here rather than at the beginning of the match”.</li>
</ul>
<p dir="auto">So it will look for lines beginning with one of those three words, then on those lines, start the replacement at the underscore as long as the underscore is followed by exactly 1-5 digits, no more, no less.</p>
<p dir="auto">If you have more line-start prefixes in the future, just put another <code>|</code> between the existing ones and the new one; all must stay within the parentheses.  If you want to force there to be a literal <code>|</code> character in there, it would have to be <code>\|</code> because <code>|</code> alone means Logic-OR.  So <code>^(  ParteNumero\|Kast|OKE_ID|OKE_IDCODE)</code> would say "start with <code>ParteNumero|Kast</code> with a literal <code>|</code> required, or start with OKE_ID or OKE_IDCODE.</p>
<p dir="auto">How specific or generic you end up making it depends on your needs.</p>
<p dir="auto">You will need to start studying the user manual regex section to learn more about the concepts I’ve mentioned.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94856</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94856</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 16 May 2024 14:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 14:26:41 GMT]]></title><description><![CDATA[<p dir="auto">You are right. It works. Now, would it be possible to write the query in order to focus on three particular lines.<br />
The line starting with<br />
ParteNumero|<br />
OKE_ID|<br />
OKE_IDCODE|</p>
<p dir="auto">Example:<br />
ParteNumero|Kast B_008 -&gt; ParteNumero|Kast B<br />
OKE_ID|Kast B_010 -&gt; OKE_ID|Kast B<br />
OKE_IDCODE|Kast B_008 -&gt; OKE_IDCODE|Kast B</p>
<p dir="auto">Yours.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94855</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94855</guid><dc:creator><![CDATA[wojh8547tg]]></dc:creator><pubDate>Thu, 16 May 2024 14:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 13:52:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wojh8547tg" aria-label="Profile: wojh8547tg">@<bdi>wojh8547tg</bdi></a> said in <a href="/post/94852">TMPRENAME Find in files</a>:</p>
<blockquote>
<p dir="auto">Unfortunately, it does not work.</p>
</blockquote>
<p dir="auto">Yes it does.</p>
<p dir="auto">Before:<br />
<img src="/assets/uploads/files/1715867471260-01d4174c-40f3-492d-b361-b0bf32388106-image.png" alt="01d4174c-40f3-492d-b361-b0bf32388106-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">After:<br />
<img src="/assets/uploads/files/1715867487067-28b67859-fac1-4487-adc8-1c1954665f21-image.png" alt="28b67859-fac1-4487-adc8-1c1954665f21-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">It does exactly what you asked for: it took removed the _ followed by 1 to 5 digits.</p>
<p dir="auto">If that’s not actually what you wanted, you will have to read the “Template for Search/Replace Questions” which I linked you to before, and ask your question better.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94854</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94854</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 16 May 2024 13:52:22 GMT</pubDate></item><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 13:52:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wojh8547tg" aria-label="Profile: wojh8547tg">@<bdi>wojh8547tg</bdi></a> ,</p>
<p dir="auto">That was really annoying.  There was no reason to create a new topic, when replying to this topic would work.  I had to do some weird moderator stuff to be able to merge this back in to be the same topic.  If you’re still talking about Find in Files, REPLY here, don’t create a NEW TOPIC!</p>
<p dir="auto">You also ignored all the advice in the links I made about how to format a post so it’s readable, so I’ve also had to use moderator powers to reformat it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/94853</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94853</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 16 May 2024 13:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 13:49:35 GMT]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/25786/find-in-files">Find in files</a><br />
Unfortunately, it does not work.<br />
Yours</p>
<p dir="auto">Here is an example:</p>
<pre><code class="language-txt">ExportVersion = 19.0
[Position] |451.264751764512|-201.994864155059|219.247893699306
[Rotation] |0|0|1|180
[PannelloGrezzo]
DimX|994.8400
DimY|540.0000
DimZ|19.0000
[PannelloFinito]
DimX|994.8400
DimY|540.0000
DimZ|19.0000
[Pannello]
DirezioneL|1.0000000000|0.0000000000|0.0000000000
NFacce|6
Faccia|0
Normale|0.0000000000|0.0000000000|1.0000000000
NElementi|4
Linea1|0.0000|540.0000|0.0000|0.0000|0.0000|0.0000
Linea2|994.8400|0.0000|0.0000|0.0000|0.0000|0.0000
Linea3|994.8400|540.0000|0.0000|994.8400|0.0000|0.0000
Linea4|994.8400|540.0000|0.0000|0.0000|540.0000|0.0000
Faccia|1
Normale|0.0000000000|-1.0000000000|0.0000000000
NElementi|4
Linea1|0.0000|0.0000|0.0000|0.0000|0.0000|-19.0000
Linea2|994.8400|0.0000|-19.0000|0.0000|0.0000|-19.0000
Linea3|994.8400|0.0000|0.0000|994.8400|0.0000|-19.0000
Linea4|994.8400|0.0000|0.0000|0.0000|0.0000|0.0000
Faccia|2
Normale|0.0000000000|0.0000000000|-1.0000000000
NElementi|4
Linea1|0.0000|0.0000|-19.0000|0.0000|540.0000|-19.0000
Linea2|994.8400|540.0000|-19.0000|0.0000|540.0000|-19.0000
Linea3|994.8400|0.0000|-19.0000|994.8400|540.0000|-19.0000
Linea4|994.8400|0.0000|-19.0000|0.0000|0.0000|-19.0000
Faccia|3
Normale|0.0000000000|1.0000000000|0.0000000000
NElementi|4
Linea1|0.0000|540.0000|-19.0000|0.0000|540.0000|0.0000
Linea2|994.8400|540.0000|0.0000|0.0000|540.0000|0.0000
Linea3|994.8400|540.0000|-19.0000|994.8400|540.0000|0.0000
Linea4|994.8400|540.0000|-19.0000|0.0000|540.0000|-19.0000
Faccia|4
Normale|1.0000000000|0.0000000000|0.0000000000
NElementi|4
Linea1|994.8400|540.0000|0.0000|994.8400|0.0000|0.0000
Linea2|994.8400|0.0000|0.0000|994.8400|0.0000|-19.0000
Linea3|994.8400|0.0000|-19.0000|994.8400|540.0000|-19.0000
Linea4|994.8400|540.0000|-19.0000|994.8400|540.0000|0.0000
Faccia|5
Normale|-1.0000000000|0.0000000000|0.0000000000
NElementi|4
Linea1|0.0000|540.0000|0.0000|0.0000|0.0000|0.0000
Linea2|0.0000|540.0000|-19.0000|0.0000|540.0000|0.0000
Linea3|0.0000|0.0000|-19.0000|0.0000|540.0000|-19.0000
Linea4|0.0000|0.0000|0.0000|0.0000|0.0000|-19.0000
[ForatureMultiple]
#IShape Name :|MultiHole [5x10] [20x2]
NSerieFori|8
DefForo|1|5.0000|10.0000|7.5000|2.5000|0.0000|0.0000|0.0000000000|0.0000000000|-1.0000000000|1000
Serie_1|193.4200|503.0000|-19.0000|321.4200|503.0000|-19.0000|5|32.0000
Serie_2|353.4200|503.0000|-19.0000|481.4200|503.0000|-19.0000|5|32.0000
Serie_3|513.4200|503.0000|-19.0000|641.4200|503.0000|-19.0000|5|32.0000
Serie_4|673.4200|503.0000|-19.0000|801.4200|503.0000|-19.0000|5|32.0000
Serie_5|193.4200|76.0000|-19.0000|321.4200|76.0000|-19.0000|5|32.0000
Serie_6|353.4200|76.0000|-19.0000|481.4200|76.0000|-19.0000|5|32.0000
Serie_7|513.4200|76.0000|-19.0000|641.4200|76.0000|-19.0000|5|32.0000
Serie_8|673.4200|76.0000|-19.0000|801.4200|76.0000|-19.0000|5|32.0000
[EndForatureMultiple]
[ForatureSingole]
[EndForatureSingole]
[ForatureGeneriche]
#IShape Name :|OKENOT|INGLOBA PROFILO|
TipoForo_1|1
ProfForo_1|2
Foro_1|19.0000|0.0000000000|0.0000000000|-1.0000000000|0
Estrusione|0.0000000000|0.0000000000|1.0000000000|
NElementi|4
PStart|782.0000|508.0000|-19.0000|
Linea1|782.0000|540.0000|-19.0000|
Linea2|737.0000|540.0000|-19.0000|
Linea3|737.0000|508.0000|-19.0000|
Linea4|782.0000|508.0000|-19.0000|
[EndForatureGeneriche]
[FresateMultiple]
[EndFresateMultiple]
[Fresate]
[EndFresate]

#PartName :LATERAL_1

[DATIASSEMBLAGGIO]
ParteNumero|
Descrizione|
PathImmagine|

[DATIGENERALI]
ParteNumero|Kast B_008
Descrizione|
OKE_ID|Kast B_010
OKE_IDCODE|Kast B_008
Num_RIP|1
Title|
Project|
Revision|
Version|
Author|
State|
Description|
Date|
CodeProduction|
CodeClient|
Client|

[DATIAGGIUNTIVI]
NElementi|38
Custom0|Border1|_
Custom1|Border2|_
Custom2|Border3|_
Custom3|Border4|_
Custom4|BorderTh1|_
Custom5|BorderTh2|_
Custom6|BorderTh3|_
Custom7|BorderTh4|_
Custom8|Category|_
Custom9|Cover1|_
Custom10|Cover1Add1|_
Custom11|Cover1Add2|_
Custom12|Cover1Total1|_
Custom13|Cover1Total2|_
Custom14|Cover2|_
Custom15|Cover2Add1|_
Custom16|Cover2Add2|_
Custom17|Cover2Total1|_
Custom18|Cover2Total2|_
Custom19|CoverTh1|_
Custom20|CoverTh2|_
Custom21|Designation|_
Custom22|Material|WS980-ST2
Custom23|MaterialCategory|WS980-ST2
Custom24|MaterialGroup|Standard
Custom25|OKE_CAB_C|Kast B
Custom26|OKE_CAB_ID|002
Custom27|OKE_CAB_N|LATERAL_1
Custom30|OKE_PAN_H|540
Custom31|OKE_PAN_L|994,84
Custom32|OKE_PAN_S|19
Custom33|OKE_PAN_VENA|0
Custom34|OKE_PAR_H|540
Custom35|OKE_PAR_L|994,84
Custom36|OKE_PAR_S|19
Custom37|Supplier|_
Custom38|Treatment|_
Custom39|Type|_

[DatiPannello]
Materiale |WS980-ST2
Tipo Materiale |WS980-ST2
Prezzo Unitario |10
Direzione Vena |0
Scarto |0
OverDim_L |0|0
OverDim_H |0|0
OverDim_S |0|0
Unità di Misura |2
Quantità |0.5372136
Prezzo Totale |5.372136
[Impiallacciature]
Impiallacciatura0|0|||0|0||0.0000000000|0.0000000000|-1.0000000000|
Impiallacciatura1|0|||0|0||0.0000000000|0.0000000000|1.0000000000|

[Bordature]
NElementi|0

NormalePannello|1.0000000000|0.0000000000|0.0000000000
[EstrusioniImportate]
[EndEstrusioniImportate]
#End Of File
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/94852</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94852</guid><dc:creator><![CDATA[wojh8547tg]]></dc:creator><pubDate>Thu, 16 May 2024 13:49:35 GMT</pubDate></item><item><title><![CDATA[Reply to Find in files on Thu, 16 May 2024 12:55:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wojh8547tg" aria-label="Profile: wojh8547tg">@<bdi>wojh8547tg</bdi></a></p>
<p dir="auto">FIND = <code>_\d{1,5}</code><br />
REPLACE = &lt;leave empty&gt;<br />
SEARCH MODE = Regular expression</p>
<p dir="auto">It means “find a literal underscore, followed by 1 to 5 digits”</p>
<p dir="auto">-—</p>
<h3>Useful References</h3>
<ul>
<li><a href="https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting">Please Read Before Posting</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/22022/template-for-search-replace-questions">Template for Search/Replace Questions</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">Formatting Forum Posts</a></li>
<li><a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">Notepad++ Online User Manual: Searching/Regex</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">FAQ: Where to find other regular expressions (regex) documentation</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/94848</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/94848</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 16 May 2024 12:55:55 GMT</pubDate></item></channel></rss>