<?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[search and replace for a newbie]]></title><description><![CDATA[<p dir="auto">So I have about 1000 .txt files that need to have some of the data stripped in them, each contains the similar lines of data<br />
"A0000058100000001  000000012016100420161004NLEE        4  110M00102  "</p>
<p dir="auto">the only constant in each file would be the leading “A00000” and the trailing "4  110M00102  "</p>
<p dir="auto">Is there an easy way to do this in the “find in files dialog” using the location of the files and then “replace in files” for the 1000 files or does it have to get a little more complicated by adding code?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15401/search-and-replace-for-a-newbie</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 11:23:22 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15401.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Mar 2018 22:03:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to search and replace for a newbie on Thu, 15 Mar 2018 08:58:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-payne" aria-label="Profile: barry-payne">@<bdi>barry-payne</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Sorry to discuss about an already <strong>solved</strong> problem but I <strong>do</strong> think that your regex <strong><code>^A.*110M00104(?!.*110M00104$)</code></strong> could be <strong>simply</strong> written :</p>
<p dir="auto"><strong><code>^A.*110M00104</code></strong></p>
<p dir="auto">Indeed, given your text, these <strong>two</strong> regexes give the <strong>same</strong> results : all lines from <strong><code>A0000</code></strong> till <strong><code>110M00104</code></strong> are <strong>matched</strong> !</p>
<pre><code class="language-diff">A0000059700000001 000000012016101020161010NLEE 4 110M00104 DL2 Cross Roller Monthly PM
A0000059700000001 000000012016101020161010NLEE 4 110M00104
A0000059700000001 000000012016101020161010NLEE 4 110M00104 SAFETY FIRST- USE LOCK OUT/TAG OUT PRIOR
A0000059700000001 000000012016101020161010NLEE 4 110M00104 TO DOING THIS JOB
A0000059700000001 000000012016101020161010NLEE 4 110M00104
A0000059700000001 000000012016101020161010NLEE 4 110M00104 Determine what energy sources will be
A0000059700000001 000000012016101020161010NLEE 4 110M00104 locked out. (Electrical, Gas, Pneumatic,
A0000059700000001 000000012016101020161010NLEE 4 110M00104 Hydraulic, Steam, Etc#)
A0000059700000001 000000012016101020161010NLEE 4 110M00104
A0000059700000001 000000012016101020161010NLEE 4 110M00104 IF YOU ARE NOT SURE WITH THE ABOVE- SEE
A0000059700000001 000000012016101020161010NLEE 4 110M00104 SUPERVISOR IMMEDIATELLY
</code></pre>
<p dir="auto">In your text, the string <strong><code>110M00104</code></strong> occurs <strong>once</strong> per line. So, once the <strong>first</strong> part <strong><code>^A.*110M00104</code></strong> has been matched, the <strong>negative look-ahead</strong> <strong><code>(?!.*110M00104$)</code></strong> is <strong>always</strong> true, because no more string <strong><code>110M00104</code></strong> occurs at the <strong>end</strong> of line !</p>
<p dir="auto">Even if we change the <strong>last</strong> line, in such a way :</p>
<pre><code class="language-diff">A0000059700000001 000000012016101020161010NLEE 4 110M00104 110M00104 SUPERVISOR IMMEDIATELLY
</code></pre>
<p dir="auto">Either, the regex <strong><code>^A.*110M00104</code></strong> or <strong>your</strong> regex <strong><code>^A.*110M00104(?!.*110M00104$)</code></strong>, would match the string <strong>A0000059700000001 000000012016101020161010NLEE 4 110M00104 110M00104</strong></p>
<hr />
<p dir="auto">If you, really, want to match a <strong>specific</strong> string ( for instance the string <strong>ABCD</strong> ) with the condition that <strong>no other</strong> string <strong>ABCD</strong> occurs, further on, in the <strong>same</strong> line, you should use the <strong>negative look-ahead</strong> <strong><code>(?!.*ABCD.*ABCD)</code></strong>, evaluated, at <strong>beginning</strong> of the current line !</p>
<p dir="auto">So, given the simple <strong>example</strong> text below :</p>
<pre><code class="language-diff">A000 Line 1 12345 ABCD Some text after
A000 Line 2 12345 ABCD       ABCD
A000 Line 3 12345 ABCD
A000 Line 4 12345 ABCD       ABCD   Test
</code></pre>
<p dir="auto">The <strong><code>3</code></strong> regexes, below, do <strong>not</strong> match the lines <strong><code>2</code></strong> and <strong><code>4 </code></strong>, which contain the string <strong><code>ABCD</code></strong>, <strong>twice</strong> :-)</p>
<ul>
<li>
<p dir="auto"><strong><code>^(?!.*ABCD.*ABCD)A.*ABCD</code></strong> matches between <strong>A000</strong> and the <strong>unique</strong> occurrence of <strong>ABCD</strong> ( Line <strong><code>1</code></strong> and <strong><code>3</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong><code>^(?!.*ABCD.*ABCD)A.*ABCD(?=.)</code></strong> matches between <strong>A000</strong> and the <strong>unique</strong> occurrence of <strong>ABCD</strong>, which does <strong>not</strong> end the line ( Line <strong><code>1</code></strong>, only )</p>
</li>
<li>
<p dir="auto"><strong><code>^(?!.*ABCD.*ABCD)A.*ABCD(?=\R)</code></strong> matches between <strong>A000</strong> and the <strong>unique</strong> occurrence of <strong>ABCD</strong>, which <strong>ends</strong> the line ( Line <strong><code>3</code></strong>, only )</p>
</li>
</ul>
<hr />
<p dir="auto">Of course, the <strong>four</strong> regexes, below, <strong>without</strong> the <strong>look-ahead</strong>, consider <strong>all</strong> the lines and, moreover :</p>
<ul>
<li>
<p dir="auto"><strong><code>^A.*ABCD</code></strong> matches between <strong>A000</strong> and the <strong>last</strong> occurrence of the string <strong>ABCD</strong> ( Line <strong><code>1</code></strong> to <strong><code>4</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong><code>^A.*?ABCD</code></strong> matches between <strong>A000</strong> and the <strong>first</strong> occurrence of the string <strong>ABCD</strong> ( Line <strong><code>1</code></strong> to <strong><code>4</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong><code>^A.*ABCD(?=.)</code></strong> matches between <strong>A000</strong> and an occurrence of <strong>ABCD</strong>, which does <strong>not</strong> end the line ( Lines <strong><code>1</code></strong>, <strong><code>2</code></strong> and <strong><code>4</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong><code>^A.*ABCD(?=\R)</code></strong> matches between <strong>A000</strong> and an occurrence of <strong>ABCD</strong>, which <strong>ends</strong> the line ( Lines <strong><code>2</code></strong> and <strong><code>3</code></strong> )</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">I forgot to mention that the <strong><code>. matches newline</code></strong> option must be <strong>UNTICKED</strong>, of course !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30897</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30897</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 15 Mar 2018 08:58:26 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 23:04:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-payne" aria-label="Profile: Barry-Payne">@<bdi>Barry-Payne</bdi></a> said:</p>
<blockquote>
<p dir="auto">reward points or something?</p>
</blockquote>
<p dir="auto">Yes, we prefer <em>bitcoin</em>  …  :-D<br />
…or just “upvote”: See the little <code>^ 0 v</code> to the right of every post?  It might say <code>^ 1 v</code> instead if someone else “liked” the posting previously. PRESS THE <code>^</code> !  Help me catch <a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a>…just kidding, I could never surpass CF…</p>
<p dir="auto">Which leads back to my original question on why someone decided your original posting in this thread was worth a “downvote”…?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> thanks for picking up this thread and bringing it to an apparently successful conclusion…I got busy and couldn’t get back to it til now…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30881</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30881</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Tue, 13 Mar 2018 23:04:31 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 22:09:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> and @ScottSumner I appreciate the information about the expressions as your right I wasn’t familiar with them, they helped me to finally get the count working, after that I moved forward with the find in file, I really appreciate you guys taking time out to help me understand the software and how much more useful it can be.</p>
<p dir="auto">is there some way to reward points or something?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30879</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30879</guid><dc:creator><![CDATA[Barry Payne]]></dc:creator><pubDate>Tue, 13 Mar 2018 22:09:51 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 21:47:52 GMT]]></title><description><![CDATA[<p dir="auto">Glad it’s working for you.</p>
<hr />
<p dir="auto">For extra regex information, here are some good links, compiled and often quoted by <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>, the forum’s regex guru (I am probably going to start quoting/paraphrasing Guy’s frequent postscript, because it’s an awesome summary of regex information and links.)</p>
<p dir="auto">Here is a good starting point for NPP users unfamiliar with regular expression concepts and syntax:</p>
<ul>
<li><a href="http://docs.notepad-plus-plus.org/index.php/Regular_Expressions" rel="nofollow ugc">http://docs.notepad-plus-plus.org/index.php/Regular_Expressions</a></li>
</ul>
<p dir="auto">Modern Notepad++ (since v6.0) uses the Boost C++ Regex library, v1.55.0 (similar to the Perl Regular Common Expressions (PRCE), v5.8):</p>
<ul>
<li>search syntax: <a href="http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html" rel="nofollow ugc">http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html</a></li>
<li>replace syntax: <a href="http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html" rel="nofollow ugc">http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html</a></li>
</ul>
<p dir="auto">Other sites with valuable regular expression information include:</p>
<ul>
<li><a href="http://perldoc.perl.org/perlre.html" rel="nofollow ugc">http://perldoc.perl.org/perlre.html</a></li>
<li><a href="http://www.regular-expressions.info" rel="nofollow ugc">http://www.regular-expressions.info</a></li>
<li><a href="http://www.rexegg.com" rel="nofollow ugc">http://www.rexegg.com</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/30878</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30878</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 13 Mar 2018 21:47:52 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 21:44:13 GMT]]></title><description><![CDATA[<p dir="auto">So after playing around and searching the web I ended up with this</p>
<p dir="auto">^A.*110M00104(?!.*110M00104$)</p>
<p dir="auto">the count works<br />
then I went to find in file and it worked as well</p>
<p dir="auto">going to copy the folder with the files and test</p>
<p dir="auto">Thanks for the help…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30877</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30877</guid><dc:creator><![CDATA[Barry Payne]]></dc:creator><pubDate>Tue, 13 Mar 2018 21:44:13 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 21:18:43 GMT]]></title><description><![CDATA[<p dir="auto">Don’t about the 1000 yet; ignore multiple files; we haven’t gotten that far, as I said before.  Until you give us good enough data to make a valid search string, the 1000 files, or the replace field, doesn’t matter.</p>
<p dir="auto">Until you can get the generic match working, nothing else matters.</p>
<p dir="auto">Given your new data set, when you tell the match that the line <strong>must</strong> end after the <code>110M00104</code> by ending it with a <code>$</code>, of course it’s not going to find any of the lines that contain information after the <code>110M00104</code></p>
<p dir="auto">Let’s take a step back to regular expressions.</p>
<p dir="auto">First, in my image, you will see that <code>☑ Regular Expression</code> is selected.  Is that what you have?  If not, you will need it, otherwise the special characters we are using will not do the wildcard matching we desire.</p>
<p dir="auto">Next, do you understand what the <code>^</code> and <code>$</code> and <code>.*?</code> do in the regular expression?  I am thinking not, given your terminology, and the sudden surprise of data after the <code>110M00104</code>.</p>
<ul>
<li><code>^</code> matches begininning of line.  So the line <em>must</em> start with whatever follows the <code>^</code>, or it will not match.  No spaces, no tabs, just that <code>A00000</code> sequence.  Do you have spaces at the beginning of the line, or is the <code>A</code> really the first character?</li>
<li><code>$</code> matches end of line.  So the line <em>must</em> end with whatever comes before the <code>$</code>… in this case, <code>110M00104</code>.  If the line doesn’t end with that, it cannot match.</li>
<li><code>.</code> is a wildcard that matches any single character</li>
<li><code>*</code> makes the previous character (or wildcard) match 0 or more instances.  So <code>.*</code> means “match 0 or more instances of any character”</li>
<li><code>?</code> makes the previous character or wildcard non-greedy, so <code>.*?</code> means “match 0 or more instances of any character, but don’t be greedy about it”.</li>
<li>wrapping characters in <code>[]</code> will allow any of those characters to match.  For example, if we want to match <code>4 110M00104</code> or <code>4 110M00102</code>, we could write that as <code>4 110M0010[24]</code>.  I will be using that notation below, so that’s why I explained it, even though we hadn’t seen it yet.</li>
</ul>
<p dir="auto">Now, let’s answer some questions:</p>
<ol>
<li>Will there ever be spaces or tabs or other characters before the <code>A</code> of the <code>A00000</code> which you said was a constant?</li>
<li>Will there ever be anything different (<code>B00000</code>, or <code>A12345</code>), or is <code>A00000</code> really a constant.</li>
<li>You have mentioned <code>4 110M00104</code> and <code>4 110M00102</code> as constant “end-markers”.  Are there any others?  Are there any other restrictions (will there always be a space before the <code>4</code>?  or a space-or-tab? anything else we should know?)</li>
<li>Can anything occur after that?  You have shown some sort of text after, so I am now thinking the answer will be “yes”, but maybe this new data isn’t representative, either, so I cannot really assume anything.  If something can come after, are there any restrictions as to what comes after?  Will there always be a space between the <code>4 110M0010[24]</code> and the extra text, or not?</li>
<li>Are there any restrictions as to what comes between the <code>A00000</code> and the <code>4 110M0010[24]</code>?  Can it contain the string <code>4 110M0010[24]</code> or not?  You always seem to show the same number of characters; will that always be true, or can it be longer or shorter?  Will there ever be more or fewer spaces in the intervening text or not?</li>
<li>Will any of these matches ever span two or more lines (ie, will the stuff between the <code>A00000</code> and the <code>4 110M0010[24]</code>, or the stuff after the <code>4 110M0010[24]</code>, ever contain newlines?)</li>
<li>Is there any other characteristic or feature or restriction or extra format of the data that you’ve forgotten to mention that I haven’t asked about?</li>
</ol>
<p dir="auto">Once we get the right data matching format, and can get it consistently matching what you think are the right number of lines in your data, then we will start working on the replace requirements.  Only after we’ve got the search and replace working in one file will we even consider moving on to multiple files.  I would love to give it to you all at once, but these surprise-requirements and differences in data rows are making that impossible.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30876</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30876</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 13 Mar 2018 21:18:43 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 19:59:51 GMT]]></title><description><![CDATA[<p dir="auto">ok so I’ll  try to be more clear, some will end in 2 and some will end in 4, I thought if the original post with a 2 worked then I could change it to 4 and it would work as well…</p>
<p dir="auto">there are about 1000 files downloaded as .txt  they were dumped by a program that used ASCII to generate the files in a batch mode, could the encoding be an issue?</p>
<p dir="auto">this is an example of lines from inside one file</p>
<p dir="auto">A0000059700000001  000000012016101020161010NLEE        4  110M00104  DL2 Cross Roller Monthly PM<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104  SAFETY FIRST- USE LOCK OUT/TAG OUT PRIOR<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104  TO DOING THIS JOB<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104  Determine what energy sources will be<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104  locked out. (Electrical, Gas, Pneumatic,<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104  Hydraulic, Steam, Etc#)<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104  IF YOU ARE NOT SURE WITH THE ABOVE- SEE<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104  SUPERVISOR IMMEDIATELLY</p>
<p dir="auto">so the find/count option you listed above works great with the long file like<br />
A0000059700000001  000000012016101020161010NLEE        4  110M00104</p>
<p dir="auto">again its the generic I can get to work no matter the combination I use, and I’ve played with quite a few combinations and versions of ^A00000.*?4 110M00104$</p>
<p dir="auto">Sorry I’m not catching on fast enough</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30870</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30870</guid><dc:creator><![CDATA[Barry Payne]]></dc:creator><pubDate>Tue, 13 Mar 2018 19:59:51 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 18:55:30 GMT]]></title><description><![CDATA[<p dir="auto">First, an aside: your most recent example could not have matched the previous pattern, because in the previous example, it was ending in 102, now it’s ending in 104.  Changing things midstream makes it more difficult for us to help you, especially when you don’t even point out you changed it.  For all we know, the reason that <code>^A00000.*?4 110M00102$</code> didn’t find anything is because your lines all ended in 104, so should have been <code>^A00000.*?4 110M00104$</code>.</p>
<p dir="auto">I’m not sure what you’re trying to say with the “i would have to go into each file and copy and paste”; if you’re complaining that one file at a time will take too long, you didn’t understand Scott.  The reason Scott rightly suggested you start with just a find is because if you cannot get the find to work, you are not going to be able to find and replace across multiple files.  So he suggested simplifying.  Once the simple is working, then you can try to make it more complicated.</p>
<p dir="auto">Now that we know you can successfully search for one of the long strings, let’s go the next step.  We’ll start with a known file that we can easily replicate (to help you).  If I take the two strings you’ve given us,</p>
<pre><code>A0000062700000001 000000012016102820161028NLEE 4 110M00104
A0000058100000001 000000012016100420161004NLEE 4 110M00102
</code></pre>
<p dir="auto">and make a file with 20 copies of each.</p>
<p dir="auto">Now, in the FIND dialog, search for the same string you just successfully searched for.  If you do the COUNT, it should find 20.  Then change the string  to <code>^A00000.*?4 110M00104$</code>.  COUNT should still give you 20.  Change the string to <code>^A00000.*?4 110M00102$</code> – this should find the other 20 instances in this dummy file. At this time I took a screenshot (below). (I realized while typing this up, I should have made the dummy file with different numbers of each line, so the counts would change, but I don’t want to regenerate the file at this point)</p>
<p dir="auto">Screenshot (image embedded as <code>![](https://i.imgur.com/7h05zUe.png)</code>):<br />
<img src="https://i.imgur.com/7h05zUe.png" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto">Now, if that’s working, you can try the “Replace” tab in one file.  Then, once that’s working for you, you can use the “Find in Files” to do multiple files at once.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30869</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30869</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 13 Mar 2018 18:55:30 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 18:20:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a>  so thats the thing when I search for a file specifically such as:</p>
<p dir="auto">A0000062700000001  000000012016102820161028NLEE        4  110M00104</p>
<p dir="auto">I get the following results</p>
<p dir="auto">Search “A0000062700000001  000000012016102820161028NLEE        4  110M00104” (68 hits in 1 file)</p>
<p dir="auto">its the generic search I cant seem to master, i would have to go into each file and copy and paste, but since I’m already in the file why not just do it there other than it would take me two days for the amount of files</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30868</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30868</guid><dc:creator><![CDATA[Barry Payne]]></dc:creator><pubDate>Tue, 13 Mar 2018 18:20:18 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 16:22:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-payne" aria-label="Profile: Barry-Payne">@<bdi>Barry-Payne</bdi></a></p>
<p dir="auto">I would “start simpler”…try a find (not replace yet) operation on a single file that you have loaded into an editor tab window.  Save the Replace-in-Files for when you have totally debugged the operation on a single file…</p>
<p dir="auto">If you want to embed an image in a posting on this site, then <a href="https://notepad-plus-plus.org/community/topic/14262/how-to-markdown-code-on-this-forum" rel="nofollow ugc">this thread</a> gives an example of how to do so.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30866</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30866</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Tue, 13 Mar 2018 16:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 14:12:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> well I was trying to figure out away to put a pic in here … I’ll try to explain it</p>
<p dir="auto">so I did the find in files<br />
find what: ^A00000.*?4  110M00102$<br />
replace with:<br />
filter defaulted to <em>.</em><br />
put the directory in as to where the files are<br />
regular expression</p>
<p dir="auto">Search “^A00000.*?4  110M00102$” (0 hits in 0 files)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30859</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30859</guid><dc:creator><![CDATA[Barry Payne]]></dc:creator><pubDate>Tue, 13 Mar 2018 14:12:45 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 12:22:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-payne" aria-label="Profile: Barry-Payne">@<bdi>Barry-Payne</bdi></a> said:</p>
<blockquote>
<p dir="auto">still not doing something right…</p>
</blockquote>
<p dir="auto">If you want additional help, you’ll have to provide more specifics than that…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30852</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30852</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Tue, 13 Mar 2018 12:22:05 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Tue, 13 Mar 2018 00:19:25 GMT]]></title><description><![CDATA[<p dir="auto">ok still not doing something right…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30844</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30844</guid><dc:creator><![CDATA[Barry Payne]]></dc:creator><pubDate>Tue, 13 Mar 2018 00:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Mon, 12 Mar 2018 23:25:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a>  I cant thank you enough, not familiar enough with the notepad ++ and the operators, I was just trying to use the * wildcard and was not having much luck, and yes its purely a strip out to remove the unwanted data from the file extract generation. I appreciate it very much and will let you know how it goes!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30842</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30842</guid><dc:creator><![CDATA[Barry Payne]]></dc:creator><pubDate>Mon, 12 Mar 2018 23:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to search and replace for a newbie on Mon, 12 Mar 2018 23:11:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-payne" aria-label="Profile: Barry-Payne">@<bdi>Barry-Payne</bdi></a></p>
<p dir="auto">Not sure why this deserved a downvote…?</p>
<p dir="auto">Okay, so Yes, there is an easy way…  You didn’t say what, if anything, you want to replace the “stripped out” portion with, so let’s just assume it is purely a strip out…</p>
<p dir="auto"><strong>Find what</strong> zone: <code>^A00000.*?4 110M00102$</code><br />
<strong>Replace with</strong> zone: <code>A000004 110M00102</code><br />
<strong>Search mode</strong>:  Regular expression</p>
<p dir="auto">So this is just very basic, and chances are good when you see what it does you will have an “Ah ha” moment, and then refine what you are really trying to do…</p>
<p dir="auto">But anyway, this looks for the beginning of a line (the <code>^</code>), then your leading text (<code>A00000</code>), then a minimal run of any characters (the <code>.*?</code>), then your trailing text (…you get the idea…) at the end of the line (the <code>$</code> specifies the end of line).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30841</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30841</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Mon, 12 Mar 2018 23:11:37 GMT</pubDate></item></channel></rss>