<?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[Find & Replace LF not working across whole document]]></title><description><![CDATA[<p dir="auto">I have a large pipe delimited file (&gt;300,000 lines) that is extracted from our ordering system. Because part of what is extracted includes free text inputted by our end users, there are a lot of cases where the rows are broken up, which I can see is caused by a Line Feed, rather than CRLF which is at the genuine end of a line.</p>
<p dir="auto">I’ve been using (?&lt;!\r)\n to find the sole LFs, and replace them with a space, but it seems like NP++ is only searching a certain number of lines before giving up. If I scroll down further, and search again, it will find a new batch, then give up again.</p>
<p dir="auto">Is there any way to get the search to go through the whole document? I’ve tried selecting everything, but that isn’t working either.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22969/find-replace-lf-not-working-across-whole-document</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 22:42:25 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22969.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 May 2022 09:29:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find & Replace LF not working across whole document on Sun, 29 May 2022 22:32:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/by-eck" aria-label="Profile: by-eck">@<bdi>by-eck</bdi></a> I’m late to this, but I wonder if Notepad++ is the right tool for this job.  If you have to do it more than once - a simple automatic text editor like “sed” would be more suitable.</p>
<p dir="auto">It also resembles work I’ve had to do to copy database data to a format that pastes into Microsoft Excel out of “SQL Server Management Studio”.  In that case, I wrote a fairly simple SQL user-defined function, whose output is what I want Excel to receive, starting with changing ‘01’ to =“01” so that Excel displays 01 instead of the number 1 - but also removing in-data line breaks and tabs and anything else that annoyed me.  Oh, I think it fixes dates.  So the output of the data process didn’t contain those hiccups.</p>
<p dir="auto">I did that as paid work so I guess my employer owns it, but they may agree to sharing it with the world.  Would you like me to ask?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77128</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77128</guid><dc:creator><![CDATA[Robert Carnegie]]></dc:creator><pubDate>Sun, 29 May 2022 22:32:32 GMT</pubDate></item><item><title><![CDATA[Reply to Find & Replace LF not working across whole document on Tue, 10 May 2022 14:47:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/by-eck" aria-label="Profile: by-eck">@<bdi>by-eck</bdi></a> ,</p>
<p dir="auto">Okay, so it’s not the version.</p>
<p dir="auto">As my video shows, it works correctly for me in v8.4, even when I start from the beginning of the file.  The only other thing I can think of is that you’re running out of memory or something.</p>
<p dir="auto">Other than that, I guess I’ll bow out, and see if someone else has other ideas why it would work fine for me and not for you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/76732</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76732</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 10 May 2022 14:47:43 GMT</pubDate></item><item><title><![CDATA[Reply to Find & Replace LF not working across whole document on Tue, 10 May 2022 14:39:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a></p>
<p dir="auto">Here’s the debug, I’m on v8.4 so I don’t think the version is the issue.</p>
<p dir="auto">Notepad++ v8.4   (64-bit)<br />
Build time : Apr 20 2022 - 03:31:06<br />
Path : C:\Program Files\Notepad++\notepad++.exe<br />
Command Line :<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
OS Name : Windows 10 Enterprise (64-bit)<br />
OS Version : 1909<br />
OS Build : 18363.2037<br />
Current ANSI codepage : 1252<br />
Plugins : mimeTools.dll NppConverter.dll NppExport.dll</p>
]]></description><link>https://community.notepad-plus-plus.org/post/76731</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76731</guid><dc:creator><![CDATA[By-Eck]]></dc:creator><pubDate>Tue, 10 May 2022 14:39:38 GMT</pubDate></item><item><title><![CDATA[Reply to Find & Replace LF not working across whole document on Tue, 10 May 2022 14:07:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/by-eck" aria-label="Profile: by-eck">@<bdi>by-eck</bdi></a> ,</p>
<p dir="auto">I have vague recollections that there was some older version which had EOL-Search-and-replace issues a long time ago.  Could you please share your <strong>?</strong>-menu’s <strong>Debug Info</strong> by clicking on the “Copy debug info into clipboard” in that dialog and pasting it here?</p>
<p dir="auto">I ask about version, because with modern v8.4, I have no problem having the cursor at line 1 of a &gt;75k line file and having it find and replace the LF into something else (whether it’s CRLF or <code>::</code> or whatever).  I did up a little screen-grab video to show it working: I replicated your line 75510 those 75510 times, and then made a 75511 and following that matched what you showed.  Whether I start from the end of the file or the beginning, it can count the matches correctly, and starting from the beginning of the file, I can do single Find Next / Replace, or I can do Replace All, and all four instances get replaced.  (My video shows FIND = <code>(?&lt;!\r)\n</code>, REPLACE = <code>::</code>, SEARCH MODE = regular expression.)</p>
<p dir="auto"><img src="https://i.imgur.com/s3QkOld.gif" alt="" class=" img-fluid img-markdown" /></p>
<pre><code>Notepad++ v8.4   (64-bit)
Build time : Apr 20 2022 - 03:31:06
Path : C:\usr\local\apps\notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit) 
OS Version : 2009
OS Build : 19042.1586
Current ANSI codepage : 1252
Plugins : AutoSave.dll ComparePlugin.dll DSpellCheck.dll EnhanceAnyLexer.dll ExtSettings.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConsole.dll NppConverter.dll NppEditorConfig.dll NppExec.dll NppExport.dll NppFTP.dll NppLspClient.dll NppUISpy.dll PreviewHTML.dll PythonScript.dll QuickText.dll TagLEET.dll _CustomizeToolbar.dll 
</code></pre>
<p dir="auto">So my guess is that you’ve got an old version of Notepad++, and if you updated to a modern version, you wouldn’t have that problem.</p>
<p dir="auto">But I also think that you don’t understand Character-Separated-Values (CSV) files and the intention of your data (in your case, the <code>|</code> character is the “Character” from “CSV”).  If CRLF is the EOL character for a CSV, a single data field (between the <code>|</code>) is allowed to have something like a bare LF.  In fact, that’s how MS Excel encodes a newline embedded in your cell, so that when it saves it as a comma-based CSV, it can have multiline data without making an invalid CSV.  A secondary way of embedding newlines in valid CSV is to put quotes around the contents of the cell… and <em>everything</em> in the balanced quotes is part of that cell.  So a 3x3 comma-based CSV file might be:</p>
<pre><code>one,two,three
first,"second with
embedded newline",third
x,y,z
</code></pre>
<p dir="auto">… in that data, cell(2,2) – which Excel would call B2 – contains a multiline piece of data.</p>
<p dir="auto">If I were you, I would talk with whoever generated your CSV, to make sure that you properly understand the intent of the data, rather than blindly assuming you need to “fix” the data.  And, if it does end up that you do need to “fix” the data, then Notepad++ <em>can</em> handle that task.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/76727</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76727</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 10 May 2022 14:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to Find & Replace LF not working across whole document on Tue, 10 May 2022 13:42:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> I think <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> is right here, the LF shouldn’t be there at all. I’ve attached a redacted screenshot.</p>
<p dir="auto">Line 75510 continues to the end, and has CR LF, which is correct, but it looks like when people have been filling in the description for line 75511, they’ve hit return, which has caused the errant LFs to appear.</p>
<p dir="auto">(?&lt;!\r)\n finds them, but only if I’m within about 250 lines of it, so “Replace All” won’t fix anything.</p>
<p dir="auto"><img src="/assets/uploads/files/1652190120469-untitled.png" alt="Untitled.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/76725</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76725</guid><dc:creator><![CDATA[By-Eck]]></dc:creator><pubDate>Tue, 10 May 2022 13:42:21 GMT</pubDate></item><item><title><![CDATA[Reply to Find & Replace LF not working across whole document on Tue, 10 May 2022 11:50:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">I read it as OP wants to change errant LF line endings into something other than a CRLF line ending, so I think your proposed solution does “too much”.</p>
<p dir="auto">Unfortunately, I don’t have any ideas for OP to help with why it might be “only searching a certain number of lines before giving up”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/76723</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76723</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 10 May 2022 11:50:39 GMT</pubDate></item><item><title><![CDATA[Reply to Find & Replace LF not working across whole document on Tue, 10 May 2022 09:53:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/by-eck" aria-label="Profile: by-eck">@<bdi>by-eck</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">You do <strong>not</strong> need to use any <strong>regular</strong> expression ! Simply :</p>
<ul>
<li>
<p dir="auto">Choose the <strong>menu</strong> option <strong><code>Edit &gt; EOL Conversion</code></strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Windows(CR LF)</code></strong> choice</p>
</li>
<li>
<p dir="auto">If the <strong><code>Windows(CR LF)</code></strong> choice is <strong>greyed</strong>, choose any <strong>other</strong> choice, <strong>first</strong>. Then, select the <strong><code>Edit &gt; EOL Conversion &gt; Windows (CR LF)</code></strong> choice</p>
</li>
<li>
<p dir="auto">Save your <strong>modified</strong> file</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/76720</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76720</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 10 May 2022 09:53:40 GMT</pubDate></item></channel></rss>