<?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[regex to add new line after period, but only if followed by a capital character]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have some text that looks like this:<br />
Once upon a time, a princess lived in a beautiful castle.She was bored and wanted an adventure.Along came a prince who took her far from her home. Then she was happy to stay home.<br />
I need it to look like this:<br />
Once upon a time, a princess lived in a beautiful castle.<br />
She was bored and wanted an adventure.<br />
Along came a prince who took her far from her home. Then she was happy to stay home.</p>
<p dir="auto">Here is what I’ve tried:<br />
Search for: .[[:upper:]]<br />
replace with: .\r[[:upper:]]<br />
which resulted in:<br />
Once upon a time, a princess lived in a beautiful castle.<br />
[[:upper:]]he was bored and wanted an adventure.<br />
[[:upper:]]long came a prince who took her far from her home. Then she was happy to stay home.</p>
<p dir="auto">I only want a new line character if the period is followed by an uppercase character, not a space. Any help would be greatly appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23534/regex-to-add-new-line-after-period-but-only-if-followed-by-a-capital-character</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 01:58:17 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23534.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Sep 2022 14:04:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to regex to add new line after period, but only if followed by a capital character on Tue, 27 Sep 2022 15:21:53 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> Thanks! Worked a treat!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80126</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80126</guid><dc:creator><![CDATA[mpmuskie20]]></dc:creator><pubDate>Tue, 27 Sep 2022 15:21:53 GMT</pubDate></item><item><title><![CDATA[Reply to regex to add new line after period, but only if followed by a capital character on Tue, 27 Sep 2022 14:19:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mpmuskie20" aria-label="Profile: mpmuskie20">@<bdi>mpmuskie20</bdi></a></p>
<p dir="auto">Find: <code>\.(?=\u)</code><br />
Replace: <code>.\r\n</code><br />
Search mode: Regular expression</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80112</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80112</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 27 Sep 2022 14:19:44 GMT</pubDate></item></channel></rss>