<?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[How to join a line break with a space?]]></title><description><![CDATA[<p dir="auto">Hello everyone, I’m new and I need help.<br />
How to concatenate a split string with a space.<br />
This export from pdf does this, and you need to combine a lot of text.</p>
<p dir="auto">Here is an example:<br />
And when the experience is over and you crash, that crash is like melancholy. And when I say that, I simply mean that the quality of that crash is creative. It’s something that, of course, disturbs 35-36s because if they don’t recognize</p>
<p dir="auto">that, it feels like all these experiences are just painful and nothing else, or just disappointing and nothing else.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23550/how-to-join-a-line-break-with-a-space</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 11:55:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23550.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Oct 2022 00:14:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to join a line break with a space? on Thu, 06 Oct 2022 18:08:53 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> Thank you very much, you have been very helpful.<br />
I manually edit the pictures, I don’t replace everything, but I just click replace, and I check right away.<br />
Added to your formula: \h*\R(?:\h*\R)(&gt;$|[,|-|—|:]$)*(?=\l)<br />
Many times saving time.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80337</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80337</guid><dc:creator><![CDATA[Сергей Рыбин]]></dc:creator><pubDate>Thu, 06 Oct 2022 18:08:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 22:30:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D1%81%D0%B5%D1%80%D0%B3%D0%B5%D0%B9-%D1%80%D1%8B%D0%B1%D0%B8%D0%BD" aria-label="Profile: Сергей-Рыбин">@<bdi>Сергей-Рыбин</bdi></a> said in <a href="/post/80242">How to join a line break with a space?</a>:</p>
<blockquote>
<p dir="auto">I’ll try and write the result, I’m starting to learn regex notepad ++.</p>
</blockquote>
<p dir="auto">I have been thinking about this and as <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> stated, the input text is just too complex to easily cover all possibilities. So I had a bit of lateral thinking and as I see it, the <code>![image]</code> line and following line with the title of that image is the step too complex to automate. As there shouldn’t be too many of these in each file, why not just “manually” move these pairs of lines to the end of the paragraph they should be associated with. The resulting text might be far easier to manipulate with regex after this occurs.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80243</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 02 Oct 2022 22:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 22:24:53 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> Thanks for the help.<br />
I’ll try and write the result, I’m starting to learn regex notepad ++.<br />
Good luck, and thanks again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80242</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80242</guid><dc:creator><![CDATA[Сергей Рыбин]]></dc:creator><pubDate>Sun, 02 Oct 2022 22:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 20:29:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/%D1%81%D0%B5%D1%80%D0%B3%D0%B5%D0%B9-%D1%80%D1%8B%D0%B1%D0%B8%D0%BD" aria-label="Profile: Сергей-Рыбин">@<bdi>Сергей-Рыбин</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">Your text is really <strong>difficult</strong> to modify ! Indeed, some <strong>consécutive</strong> lines in <em>INPUT</em> text do <strong>not</strong> correspond in corresponding <strong>consecutive</strong> lines in <em>OUPUT</em> part, even if we replace the line-break(s) with a <strong>space</strong> char !</p>
<p dir="auto">For instance :</p>
<ul>
<li>In <em>INPUT</em> text, you have the part :</li>
</ul>
<pre><code class="language-diff">I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he

![image]

came to visit. He was on tour in

Mick Jagger
Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.
</code></pre>
<ul>
<li>But, in <em>OUTPUT</em> text, you changed this part into :</li>
</ul>
<pre><code class="language-diff">I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he came to visit. He was on tour in Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.

![image]
Mick Jagger
</code></pre>
<p dir="auto">It easy to understand that is quite out of the <strong>scope</strong> of regexes !</p>
<hr />
<p dir="auto">Now, I was able to find out a <strong>regex</strong> S/R, which gives <strong>fairly good</strong> results :</p>
<p dir="auto">SEARCH <strong><code>(\h*\R)*\z|\h*\R(?:\h*\R)*(?=\l)</code></strong></p>
<p dir="auto">REPLACE <strong><code>?1\r\n:\x20</code></strong></p>
<hr />
<p dir="auto">However, even in the example just <strong>above</strong>, if we delete the lines <strong><code>![image]</code></strong>  and <strong><code>Mick Jagger</code></strong> in <strong>both</strong> <em>INPUT</em> and <em>OUTPUT</em> texts :</p>
<ul>
<li>The <em>INPUT</em> text becomes :</li>
</ul>
<pre><code class="language-diff">I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he


came to visit. He was on tour in

Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.
</code></pre>
<p dir="auto">and <strong>your</strong> <em>OUTPUT</em> text becomes :</p>
<pre><code class="language-diff">I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he came to visit. He was on tour in Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.

</code></pre>
<p dir="auto">Now, if I apply my <strong>new</strong> regex S/R attempt :</p>
<p dir="auto">SEARCH <strong><code>(\h*\R)*\z|\h*\R(?:\h*\R)*(?=\l)</code></strong></p>
<p dir="auto">REPLACE <strong><code>?1\r\n:\x20</code></strong></p>
<p dir="auto">against the <em>INPUT</em> part, I obtain the following <em>OUTPUT</em> text :</p>
<pre><code class="language-diff">I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he came to visit. He was on tour in

Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.
</code></pre>
<p dir="auto">Why the <strong>last</strong> line <strong><code>Spain in Barcelona. And I did .....</code></strong> is <strong>not</strong> joined to the <strong>previous</strong> line ? Just because, the word <strong><code>Spain</code></strong> as a <strong>country</strong> name, begins with an <strong>uppercase</strong> letter in American/English !</p>
<p dir="auto">Never mind, you could say : why not adding a rule to the regex in order to join <strong>two</strong> lines if the <strong>previous</strong> line ends with a <strong>lowercase</strong> letter and the <strong>next</strong> line begins with an <strong>uppercase</strong> letter ?</p>
<p dir="auto">Well we can of course, <strong>but</strong>, in this case, the lines :</p>
<pre><code class="language-diff">Classis Example: Lennon and McCartney

And of course Lennon and McCartney are a classic example of that. It’s a classic example of an electromagnetic connection in the 16-48 and the result of that is feel good music that deeply has influenced the collective. And that they didn’t have to go around looking for energy.
</code></pre>
<p dir="auto">and :</p>
<pre><code class="language-diff">John Lennon Paul McCartney
So, something to keep in mind about the nature of the logical process is that it is often encouraged by being social, and that there is greater success potential in the logical process by developing those sharing skills that can bring in the right kinds of associations to make those things work.
</code></pre>
<p dir="auto">Would be <strong>joinded</strong> too, <strong>contrary</strong> to what you want in your <em>OUTPUT</em> text !</p>
<hr />
<p dir="auto">In summary, there’s <strong>no perfect</strong> solution. The <strong>best</strong> that I may propose to you is the following <strong>regex</strong> S/R :</p>
<p dir="auto">SEARCH <strong><code>(\h*\R)*\z|\h*\R(?:\h*\R)*(?=\l)</code></strong></p>
<p dir="auto">REPLACE <strong><code>?1\r\n:\x20</code></strong></p>
<p dir="auto">But, after a <strong>global</strong> replacement, you’ll need to <strong>re-verify</strong> your text in order, for instance, to detect that the <em>INPUT</em> part :</p>
<pre><code class="language-diff">I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he

![image]

came to visit. He was on tour in

Mick Jagger
Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.
</code></pre>
<p dir="auto">must be <strong>changed</strong> as the following <em>OUTPUT</em> text :</p>
<pre><code class="language-diff">I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he came to visit. He was on tour in Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.

![image]
Mick Jagger
</code></pre>
<p dir="auto">Which is <strong>not</strong> so easy, isn’t it ?</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80236</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80236</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 02 Oct 2022 20:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 14:20:19 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 tried it, it connects the lines with a space, it’s good, but it removes all other empty lines.</p>
<p dir="auto">I will leave here an excerpt of the original text, with which I have to work, this is after exporting from PDF to HTML.</p>
<p dir="auto">Here you can see all the breaks that need to be connected, and the link to the image is also inside the paragraph, it must also be moved outside the paragraph boundaries, and this paragraph must also be connected.</p>
<p dir="auto">In other words, need to find the end of the line [a-z] without a dot and space, then the beginning of the line [a-z], and insert a space between them.</p>
<p dir="auto">Here is the data I currently have</p>
<pre><code>The other thing is that they have the shared experience. Now one of the things about shared experience is that we trust shared experience more than we trust individual experience. Remember that part

of the abstract process is the 11-56, and this is all about believing and belief systems. And it’s absolutely essential for an abstract person that they are believed, in the same way that it’s absolutely essential for a logic person that they are understood.

When somebody’s a 35-36 and they have an experience, and it’s their experience and only their experience, it’s very, very difficult for them to get other people to believe in them. But the moment you have a shared

experience, you have witnesses, and the whole nature of the abstract process is the presence of the witness. This is the 33-13. This is the Channel of the Prodigal. This is where the witness resides. And in the genetic continuity of the whole circuit, it is to the advantage of the abstract to have shared experience.

So that when you say you’ve seen a UFO and you see it alone, it’s a lot harder to get people to believe you. If there’s two of you, it makes it easier and so forth and so on. Whether it’s true or not is not the point. The point is that the abstract is always looking for others to believe its experience and to believe in them. This is where you get these collective television ministries. They’re not

tribal. This is not the local parish priest. These are collective ministries and they say, “Believe in me and believe in this experience, and by the way, send money.”

So when you come to the logical side, rather than simply being a protection as it is on the abstract, the electromagnetic of the 35-36, then it becomes really an essential ingredient. It’s a way of guaranteeing that there’s going to be energy available to get the creativity out.

Classis Example: Lennon and McCartney

And of course Lennon and McCartney are a classic example of that. It’s a classic example of an electromagnetic connection in the 16-48 and the result of that is feel good music that deeply has influenced the collective. And that they didn’t have to go around looking for energy.

They had it in coming together through that channel in meeting, they got access to it. You can see clearly that that access comes in many directions. The moment that the two of them are together, they’re very, very powerful, motorized talent.

![image]

John Lennon Paul McCartney
So, something to keep in mind about the nature of the logical process is that it is often encouraged by being social, and that there is greater success potential in the logical process by developing those sharing skills that can bring in the right kinds of associations to make those things work.

Mick Jagger Could Never Have a Solo Career

I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he

![image]

came to visit. He was on tour in

Mick Jagger
Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.

And of course one of the things to recognize about that is that this is a self-projected identity, and it’s a self-projected identity through the voice. Now there

isn’t one of us who cannot turn on the radio and hear a Stones song and not recognize Mick Jagger’s voice. That’s what he is recognized for. But this man could never have a solo career—never, never. It’s not possible.
</code></pre>
<p dir="auto">Here is how I would like that data to look:</p>
<pre><code>The other thing is that they have the shared experience. Now one of the things about shared experience is that we trust shared experience more than we trust individual experience. Remember that part of the abstract process is the 11-56, and this is all about believing and belief systems. And it’s absolutely essential for an abstract person that they are believed, in the same way that it’s absolutely essential for a logic person that they are understood.

When somebody’s a 35-36 and they have an experience, and it’s their experience and only their experience, it’s very, very difficult for them to get other people to believe in them. But the moment you have a shared experience, you have witnesses, and the whole nature of the abstract process is the presence of the witness. This is the 33-13. This is the Channel of the Prodigal. This is where the witness resides. And in the genetic continuity of the whole circuit, it is to the advantage of the abstract to have shared experience.

So that when you say you’ve seen a UFO and you see it alone, it’s a lot harder to get people to believe you. If there’s two of you, it makes it easier and so forth and so on. Whether it’s true or not is not the point. The point is that the abstract is always looking for others to believe its experience and to believe in them. This is where you get these collective television ministries. They’re not tribal. This is not the local parish priest. These are collective ministries and they say, “Believe in me and believe in this experience, and by the way, send money.”

So when you come to the logical side, rather than simply being a protection as it is on the abstract, the electromagnetic of the 35-36, then it becomes really an essential ingredient. It’s a way of guaranteeing that there’s going to be energy available to get the creativity out.

Classis Example: Lennon and McCartney

And of course Lennon and McCartney are a classic example of that. It’s a classic example of an electromagnetic connection in the 16-48 and the result of that is feel good music that deeply has influenced the collective. And that they didn’t have to go around looking for energy.

They had it in coming together through that channel in meeting, they got access to it. You can see clearly that that access comes in many directions. The moment that the two of them are together, they’re very, very powerful, motorized talent.

![image]

John Lennon Paul McCartney
So, something to keep in mind about the nature of the logical process is that it is often encouraged by being social, and that there is greater success potential in the logical process by developing those sharing skills that can bring in the right kinds of associations to make those things work.

Mick Jagger Could Never Have a Solo Career

I had the experience near the end of the summer before I left Ibiza for here. One of my neighbors on the island was the daughter of Mick Jagger and he came to visit. He was on tour in Spain in Barcelona. And I did his design for him and he’s the Throat, and only the Throat, to the identity. He’s got the 31-7 and the 33-13 and he has nothing else. You know, the big lips. It’s his powerful Throat.

![image]
Mick Jagger

And of course one of the things to recognize about that is that this is a self-projected identity, and it’s a self-projected identity through the voice. Now there isn’t one of us who cannot turn on the radio and hear a Stones song and not recognize Mick Jagger’s voice. That’s what he is recognized for. But this man could never have a solo career—never, never. It’s not possible.
</code></pre>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80229</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80229</guid><dc:creator><![CDATA[Сергей Рыбин]]></dc:creator><pubDate>Sun, 02 Oct 2022 14:20:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 13:57:39 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> said in <a href="/post/80227">How to join a line break with a space?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D1%81%D0%B5%D1%80%D0%B3%D0%B5%D0%B9-%D1%80%D1%8B%D0%B1%D0%B8%D0%BD" aria-label="Profile: Сергей-Рыбин">@<bdi>Сергей-Рыбин</bdi></a></p>
<p dir="auto">While Guy is away, why don’t you have a read of <a href="https://community.notepad-plus-plus.org/topic/22022/faq-desk-template-for-search-replace-questions/1">THIS</a> and then, following those guidelines, reformat the data from your post?</p>
</blockquote>
<p dir="auto">Yes, well, you are right.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80228</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80228</guid><dc:creator><![CDATA[Сергей Рыбин]]></dc:creator><pubDate>Sun, 02 Oct 2022 13:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 12:52:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D1%81%D0%B5%D1%80%D0%B3%D0%B5%D0%B9-%D1%80%D1%8B%D0%B1%D0%B8%D0%BD" aria-label="Profile: Сергей-Рыбин">@<bdi>Сергей-Рыбин</bdi></a></p>
<p dir="auto">While Guy is away, why don’t you have a read of <a href="https://community.notepad-plus-plus.org/topic/22022/faq-desk-template-for-search-replace-questions/1">THIS</a> and then, following those guidelines, reformat the data from your post?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80227</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80227</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 02 Oct 2022 12:52:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 11:36:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/%D1%81%D0%B5%D1%80%D0%B3%D0%B5%D0%B9-%D1%80%D1%8B%D0%B1%D0%B8%D0%BD" aria-label="Profile: Сергей-Рыбин">@<bdi>Сергей-Рыбин</bdi></a>,</p>
<p dir="auto">Sorry, but I’m going to be <strong>away</strong> for a few hours, starting at <strong>2pm</strong> French time !</p>
<p dir="auto">See you later</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80220</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80220</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 02 Oct 2022 11:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 11:10:46 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> Thank you for responding.<br />
I’ll try to explain in more detail. I export a lot of PDF files to markdown format, but not immediately, but first from PDF to HTML, then after editing in markdown.</p>
<p dir="auto">And after exporting from PDF to HTML, line breaks are obtained in the text, this is obtained on each page taken from PDF.</p>
<p dir="auto">And I need to connect these gaps throughout the document, and connect a paragraph of the document, put a space instead of an empty line.</p>
<p dir="auto">I’ll try what you suggested, I’ll write back later.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80218</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80218</guid><dc:creator><![CDATA[Сергей Рыбин]]></dc:creator><pubDate>Sun, 02 Oct 2022 11:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to join a line break with a space? on Sun, 02 Oct 2022 11:34:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/%D1%81%D0%B5%D1%80%D0%B3%D0%B5%D0%B9-%D1%80%D1%8B%D0%B1%D0%B8%D0%BD" aria-label="Profile: Сергей-Рыбин">@<bdi>Сергей-Рыбин</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Your question is a bit <strong>ambiguous</strong> !</p>
<hr />
<p dir="auto">Now, if we consider <strong>traditional</strong> text, with some <strong>punctuation</strong>, we could say that you would like to <strong>split</strong> a bunch of text into different <strong>sentences</strong> !</p>
<p dir="auto">If so, follow this road map :</p>
<ul>
<li>
<p dir="auto">Place the <strong>caret</strong> ( cursor ) at the <strong>beginning</strong> of the <strong>first non-empty</strong> line of your text</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>(\h*\R)*\z|(?&lt;![.;,?!])\h*\r\n(?:\h*\R)*</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>?1:\x20</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Untick</strong> all the <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click <strong>once</strong> on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<hr />
<p dir="auto">Thus, from this <em>INPUT</em> text :</p>
<pre><code class="language-diff">This is a      
test text

regarding the     
       
problem of joining

       
two separate lines
of text.
And this is
the last line
of the


text            



</code></pre>
<p dir="auto">You would get, <strong>after</strong> replacement, this <strong>expected</strong> <em>OUTPUT</em> text :</p>
<pre><code>This is a test text regarding the problem of joining two separate lines of text.
And this is the last line of the text
</code></pre>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<p dir="auto">This regex :</p>
<ul>
<li>
<p dir="auto"><strong>Deletes</strong> any <strong>consecutive</strong> list of possible <strong>trailing</strong> space/tab chars and its <strong>line-break</strong>, at the <strong>very end</strong> of the file</p>
</li>
<li>
<p dir="auto"><strong>Replaces</strong> by a <strong>space</strong> char ( <strong><code>\x20</code></strong> ) any <strong>consecutive</strong> list of possible <strong>trailing</strong> space/tab chars and its <strong>line-break</strong>, <em>ONLY IF NOT</em> preceded with, either, a <strong>full stop</strong> ( <strong><code>.</code></strong> ), a <strong>semicolon</strong> ( <strong><code>;</code></strong> ), a <strong>comma</strong> ( <strong><code>,</code></strong> ), an <strong>interrogation mark</strong> ( <strong><code>?</code></strong> ) and an <strong>exclamation mark</strong> ( <strong><code>!</code></strong> )</p>
</li>
</ul>
<p dir="auto">Voila !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80216</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80216</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 02 Oct 2022 11:34:49 GMT</pubDate></item></channel></rss>