<?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[Hello, I am trying to replace a whole paragraph in many files. But the replace function always truncate the paragraph after the first line....  I tried all different options available... Is there anything I missed?]]></title><description><![CDATA[<pre><code>trying to replace this:

	case 'eng': $dg_language = 'en'; break;
	case 'fra': $dg_language = 'fr'; break;
	case 'deu': $dg_language = 'de'; break;
	case 'pol': $dg_language = 'pl'; break;
	default: $dg_language = 'en'; break;
</code></pre>
<p dir="auto">with this:<br />
case ‘eng’: $dg_language = ‘en’; break;<br />
case ‘fra’: $dg_language = ‘fr’; break;<br />
case ‘deu’: $dg_language = ‘de’; break;<br />
case ‘pol’: $dg_language = ‘pl’; break;<br />
case ‘por’: $dg_language = ‘pt’; break;<br />
case ‘spa’: $dg_language = ‘es’; break;<br />
default: $dg_language = ‘en’; break;</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18324/hello-i-am-trying-to-replace-a-whole-paragraph-in-many-files-but-the-replace-function-always-truncate-the-paragraph-after-the-first-line-i-tried-all-different-options-available-is-there-anything-i-missed</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 16:42:29 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18324.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Oct 2019 08:11:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hello, I am trying to replace a whole paragraph in many files. But the replace function always truncate the paragraph after the first line....  I tried all different options available... Is there anything I missed? on Fri, 04 Oct 2019 13:49:31 GMT]]></title><description><![CDATA[<p dir="auto">Oops, embedded special characters (e.g <code>$</code>) would need to be “escaped” in the search expression; example <code>\$</code>.  Note: NOT needed or desired in the “replace” part.</p>
<p dir="auto">Sorry for the omission.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47552</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47552</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 04 Oct 2019 13:49:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hello, I am trying to replace a whole paragraph in many files. But the replace function always truncate the paragraph after the first line....  I tried all different options available... Is there anything I missed? on Fri, 04 Oct 2019 12:08:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/16548">@Cedric-REYMOND</a></p>
<p dir="auto">You could do it with a “regular expression” search-mode replacement:</p>
<p dir="auto">Search on:</p>
<pre><code>case 'eng': $dg_language = 'en'; break;\Rcase 'fra': $dg_language = 'fr'; break;\Rcase 'deu': $dg_language = 'de'; break;\Rcase 'pol': $dg_language = 'pl'; break;\Rdefault: $dg_language = 'en'; break;\R
</code></pre>
<p dir="auto">Replace with:</p>
<pre><code>case ‘eng’: $dg_language = ‘en’; break;\r\ncase ‘fra’: $dg_language = ‘fr’; break;\r\ncase ‘deu’: $dg_language = ‘de’; break;\r\ncase ‘pol’: $dg_language = ‘pl’; break;\r\ncase ‘por’: $dg_language = ‘pt’; break;\r\ncase ‘spa’: $dg_language = ‘es’; break;\r\ndefault: $dg_language = ‘en’; break;\r\n
</code></pre>
<p dir="auto">…or something similar since your “whitespace” is hard to determine from your posting.</p>
<p dir="auto">If your files are Linux and not Windows, change <code>\r\n</code> to <code>\n</code> in the replace part.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47546</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47546</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 04 Oct 2019 12:08:09 GMT</pubDate></item></channel></rss>