<?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[2 Instances In Find & Replace]]></title><description><![CDATA[<p dir="auto">I would like to use Find &amp; Replace with 2 instances, the first instance is straight forward,<br />
Find Z:\ Replace with /share/Public/</p>
<p dir="auto">I would like to introduce a second instance together with the first to all in one pass</p>
<p dir="auto">replace all the backward slashes to forward slashes<br />
Find \ Replace /</p>
<p dir="auto">Is there anyway to do this or will I have to do it in 2 different F&amp;R</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/10654/2-instances-in-find-replace</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 16:59:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/10654.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Oct 2015 12:50:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 Instances In Find & Replace on Mon, 12 Oct 2015 17:28:56 GMT]]></title><description><![CDATA[<p dir="auto">Cheers Guy, that worked a treat.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11693</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11693</guid><dc:creator><![CDATA[JayLaFunk]]></dc:creator><pubDate>Mon, 12 Oct 2015 17:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Instances In Find & Replace on Mon, 12 Oct 2015 17:35:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>JayLaFunk</strong>,</p>
<p dir="auto">Easy enough, with the <strong>S/R</strong>, below, using the <strong>regular expression</strong> search mode :</p>
<p dir="auto">SEARCH = <strong><code>(?i)(Z:\\)|(\\)</code></strong> and REPLACE = <strong><code>(?1/share/Public/)(?2/)</code></strong></p>
<p dir="auto">For instance, the <strong>two</strong> sentences, below :</p>
<pre><code>The absolute path : "C:\Program Files(x86)\7-zip\Lang"
The network drive Z:\ contains some public software, for everybody
</code></pre>
<p dir="auto">are changed, in <strong>one</strong> go, into :</p>
<pre><code>The absolute path : "C:/Program Files(x86)/7-zip/Lang"
The network drive /share/Public/ contains some public software, for everybody
</code></pre>
<p dir="auto">Notes :</p>
<ul>
<li>
<p dir="auto">The <strong><code>(?i)</code></strong> <strong>modifier</strong> force the <strong>insensitive</strong> behaviour of the regex engine, even if the <strong>match case</strong> option is <strong>set</strong>, in the <strong>replace</strong> dialog ( Just in case, your text contains the string <strong>z:\</strong>, with a <strong>lowercase</strong> drive letter ! )</p>
</li>
<li>
<p dir="auto">The <strong>backslash</strong> character have a <strong>special</strong> meaning, in regexes. So, it must be <strong>escaped</strong> itself, with an other <strong>backslash</strong> character, to be taken, <strong>literally</strong>.</p>
</li>
<li>
<p dir="auto">The <strong>search</strong> regex contains <strong>two</strong> groups : group <strong>1</strong> = <strong><code>Z:\\</code></strong> and group <strong>2</strong> = <strong><code>\\</code></strong>, between <strong>round</strong> brackets.</p>
</li>
<li>
<p dir="auto">The <strong>replace</strong> regex contains <strong>two</strong> conditional replacement groups : <strong><code>(?1/share/Public/)</code></strong>, which writes the string <strong>/share/Public</strong>, if group <strong>1 exists</strong> and <strong><code>(?2/)</code></strong>, which writes a <strong>forward</strong> slash, if group <strong>2 exists</strong>.</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11682</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11682</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 12 Oct 2015 17:35:46 GMT</pubDate></item></channel></rss>