<?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[Adding &quot; at the beginning and end of every line]]></title><description><![CDATA[<p dir="auto">I was given the following info and it worked until yesterday but does not work today. This is VERY strange. Instead of adding just a double quote at the beginning or end, it replaces the first or last character with the &amp; symbol.</p>
<p dir="auto">For example, you can add a quote at the end of every line:<br />
Edit &gt; Find &amp; Replace<br />
Search for: .$<br />
Replace with: &amp;"</p>
<p dir="auto">Options/Regular expressions: ON</p>
<p dir="auto">Click Replace All</p>
<p dir="auto">And, similarly, at the beginning:<br />
Search for: ^.<br />
Replace with: "&amp;</p>
<p dir="auto">I have restarted the program and reloaded the document with no success. What is wrong now? I have tried it over and over again and get the same result.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11202/adding-at-the-beginning-and-end-of-every-line</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 13:39:09 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11202.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Jan 2016 06:19:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding &quot; at the beginning and end of every line on Fri, 29 Jan 2016 14:27:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/w-c" aria-label="Profile: W-C">@<bdi>W-C</bdi></a></p>
<p dir="auto">when having</p>
<pre><code>Search for: $
Replace with: "
</code></pre>
<p dir="auto">and</p>
<pre><code>Search for: ^
Replace with: "
</code></pre>
<p dir="auto">then it should have worked but not with the dot char added and with the restriction  gerdb42 mentioned.</p>
<p dir="auto">You can also use a single regex, something like</p>
<pre><code>Search for: ^(.+)$
Replace with: "\1"
</code></pre>
<p dir="auto">Search for explained:<br />
^ = from the beginning of the line<br />
(.+) = looking for atleast one but as much as possible chars and return the match until<br />
$ = end of line is reached</p>
<p dir="auto">Replace with explained:<br />
" = insert a double quote followed by the<br />
\1 = matched result and<br />
" = add an additional double quote</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13662</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13662</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 29 Jan 2016 14:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to Adding &quot; at the beginning and end of every line on Fri, 29 Jan 2016 10:54:20 GMT]]></title><description><![CDATA[<p dir="auto">I think you need to write <code>$&amp;"</code> and <code>"$&amp;</code> for replacement. You may want to use <code>[^"]</code> instead of <code>.</code> to skip lines already beginning/ending with <code>"</code>. Use <code>[^"\r\n]</code> to also skip empty lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13661</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13661</guid><dc:creator><![CDATA[gerdb42]]></dc:creator><pubDate>Fri, 29 Jan 2016 10:54:20 GMT</pubDate></item></channel></rss>