<?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 Help]]></title><description><![CDATA[<p dir="auto">I have a big text file I am trying to clean up so it can be imported to a database.  Some of the lines are broken into two lines.</p>
<p dir="auto">I have a regular expression that finds some of the lines pretty accurately.  They are less than 45 characters and and with an asterix character</p>
<pre><code>^.{0,45}(\*)$
</code></pre>
<p dir="auto">I’d like to delete the LF character at the end of these lines only.  Is there a way to do this with find/replace?  Thanks in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21036/find-replace-help</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 06:53:35 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21036.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Apr 2021 17:17:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find/Replace Help on Thu, 15 Apr 2021 17:30:18 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> Thank you SOOO much!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65010</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65010</guid><dc:creator><![CDATA[Mark Gray]]></dc:creator><pubDate>Thu, 15 Apr 2021 17:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Find/Replace Help on Thu, 15 Apr 2021 17:24:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-gray" aria-label="Profile: Mark-Gray">@<bdi>Mark-Gray</bdi></a> ,</p>
<p dir="auto">Yes.</p>
<p dir="auto">Move the parentheses a little, and change the <code>$</code> marker to <code>\R</code>, so it will actually grab the newline sequence:</p>
<ul>
<li>FIND = <code>^(.{0,45}\*)\R</code><br />
REPLACE = <code>$1</code><br />
MODE = regular expression<br />
make sure <code>. matches newline</code> is off (or prefix the FIND with <code>(?-s)</code>)</li>
</ul>
<p dir="auto">This puts the 0-45 characters and the asterisk in group1, then grabs the newline (LF or CRLF) that occurs.  The replacement only keeps the 0-45 characters plus asterisk.</p>
<p dir="auto">If you want to delete the asterisk as well as the newline, then  FIND = <code>^(.{0,45})\*\R</code> (so that the asterisk is not in group1 anymore, and thus not kept in the replacement)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65009</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65009</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 15 Apr 2021 17:24:13 GMT</pubDate></item></channel></rss>