<?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 need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line.]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have txt file in that few paragraphs are there<br />
Ex:<br />
Paragraph 1 CRLF<br />
Line 1iiiiiiii CRLF<br />
Line 2nknv, jhsdvfu kjbfi;ii CRLF<br />
CRLF<br />
Paragraph 2 CRLF<br />
Line 1hfvuh’fpv CRLF<br />
CRLF<br />
Linwrfyvyg CRLF…</p>
<p dir="auto">Now I need Find and Replace to Get output<br />
Paragraph 1 CRLF<br />
Line 1iiiiiiii<br />
Line 2nknv, jhsdvfu kjbfi;ii<br />
CRLF<br />
and Same Like Paragraph 2.</p>
<p dir="auto">Find: ^pragraph1+linebreaks+pragraph2$ Replace only Line breaks in-between lines keeping stating and ending no character deletion.</p>
<p dir="auto">Thanks Friends For Your Help in advance.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20183/hello-i-need-help-regex-for-start-word-linebreak-end-word-to-remove-crlf-not-ant-character-or-line</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 02:14:59 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20183.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Oct 2020 17:36:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Sun, 25 Oct 2020 03:57:34 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> Dear Sir,<br />
Really Great! .Thanks a Lot its works 100%. You saved Me lot of time. Notepad plus plus is great. You’re the one who truly understand my requirements Please accept My Love and Thanks. I am forever grateful for your support!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59029</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59029</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Sun, 25 Oct 2020 03:57:34 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Sat, 24 Oct 2020 21:41:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: ohm-dios">@<bdi>ohm-dios</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Ah… OK. So, if the searched <strong><code>PARAGRAPH A</code></strong> contains <strong>true empty</strong> lines or <strong>blank</strong> lines, you would like these lines to be <strong>deleted</strong>, as well !</p>
<p dir="auto">Then, assuming this <strong>initial</strong> sample text, where I inserted some <strong>empty</strong> and <strong>blank</strong> lines, in the first <strong><code>PARAGRAPH A</code></strong> and <strong><code>PARAGRAPH B</code></strong>, for <strong>tests</strong> :</p>
<pre><code class="language-diff">This
is
text
PARAGRAPH A
this      


			



section			
            




should
be
joined  		   
PARAGRAPH B
this
section    
			
     

should



remain		
PARAGRAPH A
this
section
should
be
joined
PARAGRAPH A
this section should be joined
PARAGRAPH C
this
section
should
remain
PARAGRAPH B
this
section
should
remain
PARAGRAPH D
this section should
remain
as is
PARAGRAPH A
this
section 
should
be
joined
PARAGRAPH A
this
section 
should
be
joined
PARAGRAPH OTHER
blah
bla blah
</code></pre>
<p dir="auto">We’ll use a <strong>first</strong> <strong>regex</strong> S/R, which <strong>deletes</strong> any <strong>empty</strong> or <strong>blank</strong> line, in the <strong><code>PARAGRAPH A</code></strong> section, <strong>only</strong> :</p>
<ul>
<li>
<p dir="auto">First, add a <em>dummy</em> <strong>NON-empty</strong> line at the <strong>very beginning</strong> of your file</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?is)(PARAGRAPH A\R|\G)((?!PARAGRAPH).)*?\K(^\h*\R)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button, <strong>exclusively</strong> ( Due to the <strong><code>\K</code></strong> syntax, do <strong>not</strong> use the <strong><code>Replace</code></strong> button ! )</p>
</li>
</ul>
<p dir="auto">You should get the <strong>output</strong> :</p>
<pre><code class="language-diff">This
is
text
PARAGRAPH A
this      
section			
should
be
joined  		   
PARAGRAPH B
this
section    
			
     

should



remain		
PARAGRAPH A
this
section
should
be
joined
PARAGRAPH A
this section should be joined
PARAGRAPH C
this
section
should
remain
PARAGRAPH B
this
section
should
remain
PARAGRAPH D
this section should
remain
as is
PARAGRAPH A
this
section 
should
be
joined
PARAGRAPH A
this
section 
should
be
joined
PARAGRAPH OTHER
blah
bla blah
</code></pre>
<p dir="auto">Now, let’s run this <strong>second</strong> regex, that is simply the <strong>regex</strong> S/R provided in my <strong>previous</strong> post :</p>
<ul>
<li>
<p dir="auto">Insert an <strong>empty</strong> line at its <strong>very beginning</strong> of your file</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?i-s)(PARAGRAPH A\R|\G).+?\K\h*\R(?!PARAGRAPH)|\h+$</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>?1\x20</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button, <strong>exclusively</strong> ( Due to the <strong><code>\K</code></strong> syntax, do <strong>not</strong> use the <strong><code>Replace</code></strong> button ! )</p>
</li>
</ul>
<p dir="auto">Here we are ! This time, everything should be <strong>OK</strong> :</p>
<pre><code class="language-diff">This
is
text
PARAGRAPH A
this section should be joined
PARAGRAPH B
this
section



should



remain
PARAGRAPH A
this section should be joined
PARAGRAPH A
this section should be joined
PARAGRAPH C
this
section
should
remain
PARAGRAPH B
this
section
should
remain
PARAGRAPH D
this section should
remain
as is
PARAGRAPH A
this section should be joined
PARAGRAPH A
this section should be joined
PARAGRAPH OTHER
blah
bla blah
</code></pre>
<p dir="auto">Note that :</p>
<ul>
<li>
<p dir="auto">All the <strong>pure empty</strong> or <strong>blank</strong> lines of the <strong>first</strong> <strong><code>PARAGRAPH A</code></strong> section have been <strong>deleted</strong></p>
</li>
<li>
<p dir="auto">All the <strong>pure empty</strong> lines of the <strong>first</strong> <strong><code>PARAGRAPH B</code></strong> section remain <strong>unchanged</strong>, as <strong>expected</strong>, and the possible <strong>blank</strong> lines are simply changed into  <strong>true empty</strong> lines !</p>
</li>
</ul>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59022</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59022</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 24 Oct 2020 21:41:24 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Sat, 24 Oct 2020 17:23:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Hi sir, Sorry for my English. I cant understand what i mentioned wrong. I just conveyed my heartful thanks and asked for few more queries. My intention is to resolve my issue with notepad community. Please correct me if i am wrong and what i mentioned to consider, ( may not be considered has good behavior. ).  Actually i felt very happy after seeing that code and works great. Please Accept My Thanks To Notepad Community.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59013</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59013</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Sat, 24 Oct 2020 17:23:49 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Sat, 24 Oct 2020 15:38:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: Ohm-Dios">@<bdi>Ohm-Dios</bdi></a> said in <a href="/post/59006">Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line.</a>:</p>
<blockquote>
<p dir="auto">Need little more help</p>
</blockquote>
<p dir="auto">I don’t know that this is “help”.<br />
I think this is “doing it for you”.<br />
This is not considered good behavior here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59008</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59008</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 24 Oct 2020 15:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Sat, 24 Oct 2020 14:42:51 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> Hi sir,<br />
Sorry i am not denying advice . I am unable to convey / express my Requirement in details. Sorry for that and Thanks for your Recommendations and Now its Resolved.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59007</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59007</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Sat, 24 Oct 2020 14:42:51 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Sat, 24 Oct 2020 14:39:34 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> <code>Sir, Awesome!. Exactly the same which i expected 100%. Thanks a lot. Need little more help see example 2. It has linebreaks inbetween lines and after paragarph more than one. Thanks .</code></p>
<pre><code>code_text
EXAMPLE-1
PARAGRAPH A
this
section 
should
be
joined
PARAGRAPH
bla blah
EXAMPLE-2
PARAGRAPH A


this
section 
should
be



joined



PARAGRAPH OTHER
blah
bla blah


`
* ```
list item
Example 1 Works 100%
But for Example 2 Need help.`````</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/59006</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59006</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Sat, 24 Oct 2020 14:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Sat, 24 Oct 2020 04:07:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: ohm-dios">@<bdi>ohm-dios</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Based on the <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>’s interpretation, here is my <strong>method</strong>. I assume that :</p>
<ul>
<li>
<p dir="auto">Your <strong>different</strong> sections begin, all, with the string <strong><code>PARAGRAPH</code></strong>, <strong>whatever</strong> its case, followed with a <strong>identifier</strong> ( for instance <strong><code>Paragraph 1</code></strong>, <strong><code>PARAGRAPH A</code></strong>, <strong><code>paragraph abcd_123</code></strong> )</p>
</li>
<li>
<p dir="auto">You want to <strong>join</strong> all the lines of a <strong>specific</strong> paragraph, which is, generally, <strong>repeated</strong> in <strong>different</strong> locations of your file</p>
</li>
</ul>
<hr />
<p dir="auto">So, starting with this <strong>sample</strong> text, where some <strong>ending blank</strong> characters have been added, in the <strong>two first</strong> paragraphs, for tests :</p>
<pre><code class="language-diff">This
is
text
PARAGRAPH A
this      
section			
should
be
joined  		   
PARAGRAPH B
this
section    
should
remain		
PARAGRAPH A
this
section
should
be
joined
PARAGRAPH A
this section should be joined
PARAGRAPH C
this
section
should
remain
PARAGRAPH B
this
section
should
remain
PARAGRAPH D
this section should
remain
as is
PARAGRAPH A
this
section 
should
be
joined
PARAGRAPH A
this
section 
should
be
joined
PARAGRAPH OTHER
blah
bla blah
</code></pre>
<p dir="auto">Let’s suppose that the <strong>specific</strong> paragraph searched is named <strong><code>PARAGRAPH A</code></strong>. Then :</p>
<ul>
<li>
<p dir="auto">Open your file in <strong>N++</strong></p>
</li>
<li>
<p dir="auto">Insert an <strong>empty</strong> line at its <strong>very beginning</strong></p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-si)(PARAGRAPH A\R|\G).+?\K\h*\R(?!PARAGRAPH)|\h+$</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>?1\x20</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button, <strong>exclusively</strong> ( Do <strong>not</strong> use the <strong><code>Replace</code></strong> button ! )</p>
</li>
</ul>
<p dir="auto">You should get the <strong>expected</strong> text :</p>
<pre><code class="language-diff">This
is
text
PARAGRAPH A
this section should be joined
PARAGRAPH B
this
section
should
remain
PARAGRAPH A
this section should be joined
PARAGRAPH A
this section should be joined
PARAGRAPH C
this
section
should
remain
PARAGRAPH B
this
section
should
remain
PARAGRAPH D
this section should
remain
as is
PARAGRAPH A
this section should be joined
PARAGRAPH A
this section should be joined
PARAGRAPH OTHER
blah
bla blah
</code></pre>
<p dir="auto"><strong>IMPORTANT</strong>: Before running the <strong>regex</strong> S/R, you must move the <strong>cursor</strong> on an <strong>empty</strong> line, to avoid some <strong>side-effects</strong> caused by the <strong><code>\G</code></strong> assertion !</p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">For any line, after the <strong><code>PARAGRAPH A</code></strong> line, which is <strong>not</strong> followed with an other string <strong><code>PARAGRAPH</code></strong>, it changes any possible <strong>ending blank</strong> characters and the following <strong>line-break</strong> with a <strong>single space</strong> character</p>
</li>
<li>
<p dir="auto">It <strong>deletes</strong>, as well, all <strong>ending blank</strong> range of characters, present in <strong>any other</strong> line of the file</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58996</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58996</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 24 Oct 2020 04:07:32 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Fri, 23 Oct 2020 21:06:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: Ohm-Dios">@<bdi>Ohm-Dios</bdi></a> ,</p>
<p dir="auto">Your examples are still exceedingly unclear.  If you want good help, you have to present your data in a way that can be understood.  You have not taken any of the advice given to you.  When you refuse to take our advice on formatting the data so that it’s understandable, and giving before and after data, you are saying to us that you don’t want to make it easy for us to help you; and with an attitude like that, you’re not likely to get much help.</p>
<p dir="auto">For example, the following says what I think you are asking for, but it’s really hard to tell:</p>
<p dir="auto">Start with data:</p>
<pre><code>This 
is 
text
PARAGRAPH MATCHING
this 
section 
should 
be 
joined
PARAGRAPH NO MATCH
this
section
should
remain
PARAGRAPH MATCHING
this
section
also
joined
PARAGRAPH OTHER
blah
</code></pre>
<p dir="auto">Then, after the transformation, I think you want:</p>
<pre><code>This 
is 
text
PARAGRAPH MATCHING
this section should be joined
PARAGRAPH NO MATCH
this
section
should
remain
PARAGRAPH MATCHING
this section also joined
PARAGRAPH OTHER
blah
</code></pre>
<p dir="auto">(Notice how I highlighted that example text, then clicked the <code>&lt;/&gt;</code> button, so the forum marks it as text.  This makes your example data obvious, and it makes sure we know the forum didn’t convert your data without you noticing.)</p>
<p dir="auto">Unfortunately, that’s an complicated setup – trying to replace newlines only between certain marker pairs, but leave them alone elsewhere – and I am not sure how to accomplish that.  It’s also made more complicated because you want to leave the newlines after the START condition (<code>PARAGRAPH MATCHING</code>, in my example)</p>
<p dir="auto">If this is what you want, let us know.  If this is not what you want, then show a full before-and-after example like I did.  If the preview window doesn’t show it as black, then you haven’t clicked the <code>&lt;/&gt;</code> button correctly.  If you refuse to take this advice, you are likely to not get any more replies.</p>
<p dir="auto">Once we know from you what you want the transformation to be, maybe <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> or <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> or another regex guru can chime in with a working solution, but I’ve given as much help as I can, at least for now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58995</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58995</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 23 Oct 2020 21:06:17 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Fri, 23 Oct 2020 13:53:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: Ohm-Dios">@<bdi>Ohm-Dios</bdi></a><br />
Update: Its Like From to string selection i need in Find : paragraph 1----Paragraph 2 (whatever inside to be selected and formatted)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58984</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58984</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Fri, 23 Oct 2020 13:53:38 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Fri, 23 Oct 2020 13:28:01 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> said in <a href="/post/58855">Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line.</a>:</p>
<blockquote>
<p dir="auto">¶</p>
</blockquote>
<p dir="auto">Thanks sir, Its Worked. So kind of you. This is what i need but some modifications. Suppose my page has multiple paragraph titles. I want to convert only paragraph 1 example. It repeated many times in page along with other paragraph titles. So in search i need to choose paragraph 1 fully until next paragraph title and that paragraph 1 wherever it repeats on that page all at once. thanks .</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58982</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58982</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Fri, 23 Oct 2020 13:28:01 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Tue, 20 Oct 2020 13:20:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: Ohm-Dios">@<bdi>Ohm-Dios</bdi></a> ,</p>
<p dir="auto">Sorry, your “clarification” was no help, especially since you didn’t follow my advice.</p>
<p dir="auto">The best I can do at this point is guess.  I’ll give you that one free guess.</p>
<p dir="auto">I would accomplish my guess as a three-step process.  Search Mode = regular expression for all steps</p>
<ol>
<li>FIND = <code>(?-s)(Paragraph.*?$)</code><br />
REPLACE = <code>¶${1}¶</code><br />
<strong>Replace All</strong></li>
<li>FIND = <code>\R</code><br />
REPLACE = empty/nothing<br />
<strong>Replace All</strong></li>
<li>FIND = <code>¶</code><br />
REPLACE = <code>\r\n</code><br />
<strong>Replace All</strong></li>
</ol>
<p dir="auto">My guess is probably wrong, but I cannot do any more for you.</p>
<p dir="auto">If you come back and clarify, actually following my advice for how to format text using the <code>&lt;/&gt;</code> button, and giving better examples, someone else might be able to understand you better.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58855</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58855</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 20 Oct 2020 13:20:24 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Tue, 20 Oct 2020 03:25:47 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><br />
Yes Sir, You got my point ctrl+j But i dont want to go each and every paragraph to join. I need a regex command to do it all at once as per given string of start word and end word. It has to select all the lines between two strings and join keeping only end CRLF .<br />
Your query-Which CRLF To Keep–&gt; Paragraph 1 CRLF (All lines wraped) CRLF …Next Paragraph<br />
To Remove --&gt; Inside [ Startword.CRLF ( all lines).CRLF.endword]<br />
Hope you understand now.<br />
Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58842</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58842</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Tue, 20 Oct 2020 03:25:47 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Mon, 19 Oct 2020 18:27:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: Ohm-Dios">@<bdi>Ohm-Dios</bdi></a> ,</p>
<p dir="auto">Even with those screenshots, the only thing I can tell about the CRLF that you want to keep are the ones before the word <code>Paragraph</code> and at the line of the line containing the word <code>Paragraph</code>, but I am doubtful that I have correctly guessed your intended meaning (in that, I doubt the word <code>Paragraph</code> is actually anywhere in your text).  Other than that, I have no way of determining which CRLF you want to keep and which CRLF you want to remove.  What is the rule that decides whether a line should be joined or not?</p>
<p dir="auto">If you don’t have a hard-and-fast rule, then regex won’t be able to help you.</p>
<p dir="auto">Either way, I might suggest just highlighting the lines that you want to join manually, and use <code>Ctrl+J</code> (<strong>Edit &gt; Line Operations &gt; Join</strong>) to join the lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58832</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58832</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 19 Oct 2020 18:27:40 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Mon, 19 Oct 2020 17:53:02 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><br />
Hi ,<br />
I have updated my query. Please have a look and do the needful please. thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58831</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58831</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Mon, 19 Oct 2020 17:53:02 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Mon, 19 Oct 2020 17:45:05 GMT]]></title><description><![CDATA[<p dir="auto">OK ,<br />
Please find attached image![alt text](<img src="/assets/uploads/files/1603129491700-ohm-dios.png" alt="ohm dios.png" class=" img-fluid img-markdown" /> image url))</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58828</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58828</guid><dc:creator><![CDATA[Ohm Dios]]></dc:creator><pubDate>Mon, 19 Oct 2020 17:45:05 GMT</pubDate></item><item><title><![CDATA[Reply to Hello I need Help regex For Start word +linebreak+ end word to remove CRLF not ant character or line. on Mon, 19 Oct 2020 17:39:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ohm-dios" aria-label="Profile: Ohm-Dios">@<bdi>Ohm-Dios</bdi></a></p>
<p dir="auto">Sorry, your description is rather confusing.</p>
<p dir="auto">Could you repost your before and after data using the formatting tools / markdown, as described below.</p>
<p dir="auto">If you take this advice to heart, you’ll get better answers.</p>
<p dir="auto">-—</p>
<p dir="auto"><em>Do you want regex search/replace help?  Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you.  All example text should be marked as plain text using the <code>&lt;/&gt;</code> toolbar button or manual <a href="https://community.notepad-plus-plus.org/topic/14262/how-to-markdown-code-on-this-forum/4">Markdown syntax</a>. Screenshots can be pasted from the clipboard to your post using <code>Ctrl+V</code> to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have <strong>and</strong> the text you want to get from that data; include examples of things that <strong>should match</strong> and be transformed, <strong>and</strong> things that <strong>don’t match</strong> and should be left alone; show <strong>edge cases</strong> and make sure you examples are as <strong>varied</strong> as your real data.  Show the regex you already tried, <strong>and why</strong> you thought it should work; tell us what’s wrong with what you <strong>do</strong> get… Read the official <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">NPP Searching / Regex docs</a> and the forum’s <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">Regular Expression FAQ</a>. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/58827</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58827</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 19 Oct 2020 17:39:03 GMT</pubDate></item></channel></rss>