<?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[Remove CRLF Not Preceded by a Space]]></title><description><![CDATA[<p dir="auto">I have a text file that contains 10000 records exported from DataPerfect. There are many unwanted CRLFs that I need to remove. Most of the problem CRLFs are NOT preceded by a space. The valid CRLFs are usually preceded by a space.</p>
<p dir="auto">Is there a way that I can use the replace function to remove the CRLFs that are NOT preceded by a space?<br />
Any help is greatly appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14371/remove-crlf-not-preceded-by-a-space</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 05:22:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14371.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Aug 2017 09:25:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Remove CRLF Not Preceded by a Space on Sun, 27 Aug 2017 21:19:26 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Scott. Much appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26475</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26475</guid><dc:creator><![CDATA[Wayne Aprato]]></dc:creator><pubDate>Sun, 27 Aug 2017 21:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to Remove CRLF Not Preceded by a Space on Sun, 27 Aug 2017 12:20:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wayne-aprato" aria-label="Profile: Wayne-Aprato">@<bdi>Wayne-Aprato</bdi></a></p>
<p dir="auto">Any decent text editor has a way of doing what you need and Notepad++ is no exception.</p>
<p dir="auto">Invoke the <em><strong>Replace</strong></em> dialog, and then:</p>
<p dir="auto"><strong>Find-what</strong> zone: <code>(?&lt;!\x20)\r\n</code><br />
<strong>Replace-with</strong> zone:  make sure this zone has nothing in it<br />
<strong>Search-mode</strong> setting:  <code>Regular expression</code><br />
<strong>Action:</strong> your choice of <strong>Replace</strong> or <strong>Replace All</strong></p>
<p dir="auto">So in essence what the <em>FInd-what</em> formula is doing is finding a CRLF pair (the <code>\r\n</code> part), and then looking at the character immediately preceding.  If it is NOT a space character (<code>\x20</code>), then that particular CRLF pair gets replaced (with nothing as that is what is specified in <em>Replace with</em>), otherwise it is left as it is.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26467</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26467</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Sun, 27 Aug 2017 12:20:27 GMT</pubDate></item></channel></rss>