<?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[Run multiple search and replace - one after another]]></title><description><![CDATA[<p dir="auto">I have a few search and replace combinations that I use frequently that mostly work - but I usually need to run maybe 3 of them one after another - kind of like this;<br />
1.<br />
To remove incorrect CRLF – start with the following<br />
Remove CRLF for sentences ending in lower case letter;<br />
Search			([a-z])\R<br />
Replace			\1<br />
2.<br />
Remove CRLF for sentences ending in hyphen;<br />
Search			-\R<br />
Replace			NOTHING<br />
3.<br />
! Remove COMMA (,) for sentences ending in COMMA (,);<br />
Remove CRLF (,) for sentences ending in COMMA (,);</p>
<p dir="auto">Search			,\R<br />
Replace			NOTHING</p>
<p dir="auto">Is there a way I can run these with a script or something like that ? As you might see I need to keep a list of them all which I then have to copy and paste into the editor one after another and mistakes often happen :-(</p>
<p dir="auto">Any help would be much appreciated and I am anxious to learn.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26779/run-multiple-search-and-replace-one-after-another</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 15:07:53 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26779.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Apr 2025 21:07:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Run multiple search and replace - one after another on Tue, 15 Apr 2025 17:38:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramses505" aria-label="Profile: Ramses505">@<bdi>Ramses505</bdi></a> said in <a href="/post/101037">Run multiple search and replace - one after another</a>:</p>
<blockquote>
<p dir="auto">Out of interest - can I run some sort of python script that would do this as well ?</p>
</blockquote>
<p dir="auto">Yes. If you already know Python, the <a href="https://community.notepad-plus-plus.org/topic/23039/faq-how-to-install-and-run-a-script-in-pythonscript">PythonScript plugin</a> can let you automate Notepad++ with Python.</p>
<p dir="auto">If you don’t know Python, this forum is not the place to discuss how to learn Python. There are countless tutorials on the internet for that purpose. I’ll just mention the <a href="https://docs.python.org/3/library/re.html" rel="nofollow ugc"><code>re</code> library</a> and leave it at that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/101038</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/101038</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Tue, 15 Apr 2025 17:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to Run multiple search and replace - one after another on Tue, 15 Apr 2025 17:16:53 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Terry and Mark. <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a><br />
Out of interest - can I run some sort of python script that would do this as well ?</p>
<p dir="auto">Thanks for taking the time to read and answer, appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/101037</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/101037</guid><dc:creator><![CDATA[Ramses505]]></dc:creator><pubDate>Tue, 15 Apr 2025 17:16:53 GMT</pubDate></item><item><title><![CDATA[Reply to Run multiple search and replace - one after another on Mon, 14 Apr 2025 21:43:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramses505" aria-label="Profile: Ramses505">@<bdi>Ramses505</bdi></a></p>
<p dir="auto">TerryR omitted a link to the documentation. <a href="https://npp-user-manual.org/docs/macros/" rel="nofollow ugc">Here it is</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/101014</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/101014</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Mon, 14 Apr 2025 21:43:13 GMT</pubDate></item><item><title><![CDATA[Reply to Run multiple search and replace - one after another on Mon, 14 Apr 2025 21:10:09 GMT]]></title><description><![CDATA[<p dir="auto">@Tobias-Ray</p>
<p dir="auto">Yes, in a word “Macro”.</p>
<p dir="auto">It is just the saving of the keystrokes and regular expressions in whatever function (Find, Replace). Once saved and given a name and possibly a shortcut mapping you can run it anytime you wish.</p>
<p dir="auto">Best to read the online manual, it explains it there.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/101013</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/101013</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 14 Apr 2025 21:10:09 GMT</pubDate></item></channel></rss>