<?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[ctrl+shift+f &amp; macro]]></title><description><![CDATA[<p dir="auto">I have a list of strings and I want to remove those strings from other lists with np++.</p>
<p dir="auto">A single string is easy, just highlight, ctrl+shift+f, click replace. [click are you sure, yes I’m sure!] Delete the highlight, on to next string.</p>
<p dir="auto">But I have a few thousand of these to do.</p>
<p dir="auto">Recording a macro doesn’t update the replace dialogue [and persists in asking are you sure?, I was sure when I recorded the macro]</p>
<p dir="auto">Any suggestions?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22134/ctrl-shift-f-macro</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 17:57:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22134.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Nov 2021 07:00:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ctrl+shift+f &amp; macro on Mon, 15 Nov 2021 11:21:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> thanks for the reply.<br />
many files [actually .m3u music playlists]<br />
I’m removing tracks I no longer own from .m3u history lists.</p>
<p dir="auto">yes I mean 1000’s of strings.<br />
They should be windows paths in 99% of cases but can’t rule out something being not strictly windows.</p>
<p dir="auto">Your method sounds solid, I made a AHK style c++ app to do the job, it’s slow but this is a once a year bit of house keeping so no need to be fast.</p>
<p dir="auto">I’ll keep your method in mind for similar smaller projects. Thanks again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71305</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71305</guid><dc:creator><![CDATA[nick klaus]]></dc:creator><pubDate>Mon, 15 Nov 2021 11:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to ctrl+shift+f &amp; macro on Mon, 15 Nov 2021 08:42:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nick-klaus" aria-label="Profile: nick-klaus">@<bdi>nick-klaus</bdi></a> Hi. You didn’t explicitly say that you need to operate on several or many files, although this is implied.</p>
<p dir="auto">When you say “a few thousand of these” I presume you mean strings, and more precisely, that you have a text file containing one such string per line.</p>
<p dir="auto">It would be good to know if each and every string to remove is a conventional Windows path, and if so, if there are other characteristics common to them.</p>
<p dir="auto">It would be good to know if the overall operation will leave some other Windows paths in the target files undisturbed.</p>
<p dir="auto">So, I feel like I’m making some guesses about your requirements; you might have made a greater effort to reduce ambiguity.</p>
<p dir="auto">Anyway, here is a broad strategy:</p>
<p dir="auto">Phase 1: a regex (or maybe a few macros) converts your list of strings into a large regex that specifies the (logical) OR of all of the strings. The process would need to insert escapes for all the special chars (backslashes, periods, etc).</p>
<p dir="auto">Phase 2: run this new regex against all your files.</p>
<p dir="auto">Phase 1 may not be feasible due to bumping against npp’s regex char limit, in which case breaking the job into hundred-ish string batches might be necessary.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71302</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71302</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Mon, 15 Nov 2021 08:42:59 GMT</pubDate></item><item><title><![CDATA[Reply to ctrl+shift+f &amp; macro on Mon, 15 Nov 2021 07:07:47 GMT]]></title><description><![CDATA[<p dir="auto">oh for clarity an example string might be</p>
<pre><code>C:\Users\user\Downloads\4204.mp3\n
</code></pre>
<p dir="auto">and I’d be replacing it with nothing</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71301</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71301</guid><dc:creator><![CDATA[nick klaus]]></dc:creator><pubDate>Mon, 15 Nov 2021 07:07:47 GMT</pubDate></item></channel></rss>