<?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 do I combined each 2 lines with a :]]></title><description><![CDATA[<p dir="auto">So I have alot of lines that look like this<br />
a999999a<br />
Matt48947<br />
b999999b<br />
unicornlove101010<br />
smile123<br />
Mattp1<br />
p1looser<br />
raventehpanda</p>
<p dir="auto">And  want to turn it to something like this<br />
a999999a:Matt48947<br />
b999999b:unicornlove101010<br />
smile123:Mattp1<br />
p1looser:raventehpanda</p>
<p dir="auto">How do I go about that? Also how do I delete duplicate lines without textfx? because I can’t download it / install it.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15790/how-do-i-combined-each-2-lines-with-a</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 13:43:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15790.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 May 2018 18:24:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do I combined each 2 lines with a : on Mon, 21 May 2018 15:38:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fouad-tbz" aria-label="Profile: Fouad-tbz">@<bdi>Fouad-tbz</bdi></a> You can also use Macro for this. First, place the caret on the first line, in front of the first word. Start the macro recording and type the following keys:</p>
<ul>
<li>End</li>
<li>:</li>
<li>Delete</li>
<li>Down arrow</li>
<li>Home</li>
</ul>
<p dir="auto">Stop the recording. Play the macro (1 time or repeat).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32384</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32384</guid><dc:creator><![CDATA[Jean-michel]]></dc:creator><pubDate>Mon, 21 May 2018 15:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to How do I combined each 2 lines with a : on Sat, 19 May 2018 20:28:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/fouad-tbz" aria-label="Profile: fouad-tbz">@<bdi>fouad-tbz</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">Your <strong>first</strong> task is very <strong>easy</strong> to achieve :</p>
<ul>
<li>
<p dir="auto">If you have to do this S/R, in a <strong>particular</strong> area of tour text, do a <strong>normal</strong> selection, <strong>first</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">If a <strong>previous</strong> selections exist, turn on the <strong><code>In selection</code></strong> option</p>
</li>
<li>
<p dir="auto">Else, just ticked 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>
</ul>
<p dir="auto">SEARCH <strong><code>(?-s)(^.+)\R(.+)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1:\2</code></strong></p>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
<p dir="auto">Et voilà !</p>
<hr />
<p dir="auto">Regarding <strong>deleting duplicate</strong> lines, <strong>two</strong> solutions are possible :</p>
<ul>
<li>If you don’t mind <strong>sorting</strong> your text, first, ( <strong>Edit &gt; Line Operations &gt; Sort Lines Lexicographically Ascending</strong> ) use the <strong>following</strong> regex S/R :</li>
</ul>
<p dir="auto">SEARCH <strong><code>(?-s)(^.+\R)\1+</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1</code></strong></p>
<p dir="auto">which will delete <strong>all duplicate consecutive</strong> lines of your <strong>sorted</strong> list</p>
<ul>
<li>Now, if you prefer to preserve the <strong>present order</strong> of your list, use the <strong>regex</strong> S/R, below :</li>
</ul>
<p dir="auto">SEARCH <strong><code>^(?-s)(^.+\R)(?s)(?=.*\R\1)</code></strong></p>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
<p dir="auto">which will delete <strong>all duplicate</strong> lines, keeping, only, the <strong>last duplicate</strong> lines !</p>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">In <strong>all</strong> regexes, the <strong><code>(?-s)</code></strong> <strong>modifier</strong>, means that the <strong><code>dot</code></strong> <strong>special</strong> character matches any <strong>single standard</strong> character, only</p>
</li>
<li>
<p dir="auto">In the <strong>third</strong> regex, the <strong><code>(?s)</code></strong> syntax means that, <strong>afterwards</strong>, the <strong><code>.</code></strong> can match, absolutely, any <strong>single</strong> character, even <strong>EOL</strong> ones</p>
</li>
<li>
<p dir="auto">In the <strong>first</strong> regex, the <strong><code>(^.+)</code></strong> and <strong><code>(.+)</code></strong>  part stand for a <strong>complete</strong> line, from <strong>column 1</strong>, <em>without</em> its <strong>EOL</strong> characters</p>
</li>
<li>
<p dir="auto">In the <strong>last two</strong> regeges, the <strong><code>(^.+\R)</code></strong> part matches a <strong>complete</strong> line, from <strong>column 1</strong>, with its <strong>EOL</strong> characters</p>
</li>
<li>
<p dir="auto">All areas between <strong>parentheses</strong> define a <strong>group</strong>, numbered <strong><code>1</code></strong>, <strong><code>2</code></strong> and so on…, which can be <strong>re</strong>-used, either, in the <strong>search</strong> or <strong>replacement</strong> part, with the syntax <strong><code>\1</code></strong>, <strong><code>\2</code></strong> and so on…</p>
</li>
<li>
<p dir="auto">The <strong><code>+</code></strong> <strong>quantifier</strong> ( or <strong><code>{1,}</code></strong> ) represents any <strong>non-null</strong> repetition of the <strong>previous</strong> character or group</p>
</li>
<li>
<p dir="auto">The <strong><code>*</code></strong> <strong>quantifier</strong> ( or <strong><code>{0,}</code></strong> ) represents <strong>any</strong> repetition, ( even <strong>none</strong> )  of the <strong>previous</strong> character or group</p>
</li>
<li>
<p dir="auto">Finally, the <strong><code>\R</code></strong> syntax matches any king of <strong>EOL</strong> characters( <strong>line-break</strong> ), whatever the file ( <strong>Windows</strong>, <strong>Unix</strong> or <strong>Mac</strong> )</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">For <strong>further</strong> information about <strong>regular expressions</strong>, refer to the link below :</p>
<p dir="auto"><a href="https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/32342</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32342</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 19 May 2018 20:28:43 GMT</pubDate></item></channel></rss>