<?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 separate words of specific strings?]]></title><description><![CDATA[<p dir="auto">Let’s not waste any time and try to comprehend through the example given.</p>
<p dir="auto">What I have:</p>
<pre><code>6545 BRANDYWINI DR.SO KLAMATH FALLS CA
</code></pre>
<p dir="auto">What I want:</p>
<pre><code>6545 BRANDYWINI DR.SO KLAMATH FALLS
CA
</code></pre>
<p dir="auto"><strong>Note: The word i want to seperate always consist ONLY 2 STRINGS/DIGITS/CHARACTERS and are always in uppercase</strong></p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20513/how-to-separate-words-of-specific-strings</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 09:05:25 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20513.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Dec 2020 01:45:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to separate words of specific strings? on Fri, 25 Dec 2020 14:28:16 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 so much from my deep heart. I really appreciate your efforts towards an stranger like me. And i will definitely try learning from links provided by you. Thanks again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61082</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61082</guid><dc:creator><![CDATA[Faisal Alam]]></dc:creator><pubDate>Fri, 25 Dec 2020 14:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to separate words of specific strings? on Fri, 25 Dec 2020 14:24:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: faisal-alam">@<bdi>faisal-alam</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">OK… So, the following <strong>regex</strong> S/R  :</p>
<p dir="auto">SEARCH <strong><code>\x20(\w\w(\R))</code></strong></p>
<p dir="auto">REPLACE <strong><code>\2\1</code></strong></p>
<p dir="auto">should do the trick !</p>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">This search regex  looks for a <strong>space</strong> character <strong><code>\x20</code></strong> followed with any word of <strong>two word</strong> characters <strong><code>\w\w</code></strong> ( <strong>digits</strong>, <strong>uppercase</strong> or <strong>lowercase</strong> letters or the <strong>underscore</strong> char ) and followed with <strong>line-break</strong> character(s) <strong><code>(\R)</code></strong></p>
</li>
<li>
<p dir="auto">The word with the <strong>immediate</strong> line-break is stored as <strong>group <code>1</code></strong></p>
</li>
<li>
<p dir="auto">The <strong>line-break</strong>, itself, is stored as <strong>group <code>2</code></strong></p>
</li>
<li>
<p dir="auto">In <strong>replacement</strong>, we first add a <strong>line break</strong> <strong><code>\2</code></strong> then the <strong>two-word</strong> chars and its <strong>line -break</strong>, so <strong><code>\1</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto">But, <strong>sincerely</strong>, as <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> said, you’d better <strong>learn</strong> from <strong>specific</strong> regex sites, to have a <strong>complete</strong> oversight of the <strong>regex</strong> world ! Refer, to these <strong>links</strong> below :</p>
<p dir="auto"><a href="https://ryanstutorials.net/regular-expressions-tutorial/" rel="nofollow ugc">https://ryanstutorials.net/regular-expressions-tutorial/</a></p>
<p dir="auto"><a href="https://ryanstutorials.net/regular-expressions-tutorial/regular-expressions-basics.php" rel="nofollow ugc">https://ryanstutorials.net/regular-expressions-tutorial/regular-expressions-basics.php</a></p>
<p dir="auto"><a href="https://www.regular-expressions.info/quickstart.html" rel="nofollow ugc">https://www.regular-expressions.info/quickstart.html</a></p>
<p dir="auto"><a href="http://www.regular-expressions.info" rel="nofollow ugc">http://www.regular-expressions.info</a></p>
<p dir="auto">Looks also to this <strong>FAQ</strong> for other links :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation</a></p>
<hr />
<p dir="auto">Of course, we are ready to <strong>help</strong> you if you have problems with a <strong>particular</strong> passage of these training courses !</p>
<p dir="auto">Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61081</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61081</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 25 Dec 2020 14:24:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to separate words of specific strings? on Fri, 25 Dec 2020 13:28:13 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 can manage everything if we are going for the last words but you need to tell me that doing this operation won’t affect the other <strong>2 string words in any other line(case insensitive)</strong> and <strong>Thanks of course bro</strong></p>
]]></description><link>https://community.notepad-plus-plus.org/post/61080</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61080</guid><dc:creator><![CDATA[Faisal Alam]]></dc:creator><pubDate>Fri, 25 Dec 2020 13:28:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to separate words of specific strings? on Fri, 25 Dec 2020 12:41:39 GMT]]></title><description><![CDATA[<p dir="auto">Do we just keep answering this person’s trivial data manipulations forever?  Or do we request that said person start learning so that we can pursue more interesting things on this forum?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61076</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61076</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 25 Dec 2020 12:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to separate words of specific strings? on Fri, 25 Dec 2020 12:09:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: faisal-alam">@<bdi>faisal-alam</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Unlike</strong> your other post , the description of what you needs isn’t <strong>accurate</strong> enough !</p>
<p dir="auto">You said :</p>
<blockquote>
<p dir="auto">Note: The word i want to seperate always consist ONLY 2 STRINGS/DIGITS/CHARACTERS and are always in uppercase</p>
</blockquote>
<p dir="auto">But, in the line :</p>
<pre><code class="language-diff">6545 BRANDYWINI DR.SO KLAMATH FALLS CA
</code></pre>
<p dir="auto">There are <strong>three</strong> words containing <strong>two uppercase</strong> letters :</p>
<ul>
<li>
<p dir="auto"><strong><code>DR</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>SO</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>CA</code></strong></p>
</li>
</ul>
<p dir="auto">Or do you mean : I want the <strong>last</strong> word of line, with <strong>two uppercase</strong> letters, to be moved on <strong>next</strong> line ?</p>
<p dir="auto">Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61073</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61073</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 25 Dec 2020 12:09:45 GMT</pubDate></item></channel></rss>