<?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: Change the first lowercase letters of each word to capital letter on html tags]]></title><description><![CDATA[<p dir="auto">I have this html tag:</p>
<p dir="auto"><code>&lt;title&gt;sunrise must gone for a moment&lt;/title&gt;</code></p>
<p dir="auto">The Output must be:</p>
<p dir="auto"><code>&lt;title&gt;Sunrise Must Gone For A Moment&lt;/title&gt;</code></p>
<p dir="auto">SO, I use this regex. But my regex makes the replacing only for the first word, and I want to change all words from the &lt;title&gt; tag</p>
<p dir="auto">Find what: <code>(&lt;title&gt;)([a-z])</code><br />
Replace with: <code>\1\u$2</code></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22491/regex-change-the-first-lowercase-letters-of-each-word-to-capital-letter-on-html-tags</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 20:36:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22491.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Feb 2022 18:19:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Sun, 06 Feb 2022 21:01:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a></p>
<p dir="auto">I made a change to <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> regex formula, as to modify something else.</p>
<p dir="auto">So, If someone wants to convert the first letter of the first word at the beginning of &lt;title&gt; tag, from lowercase to a capital letter:</p>
<p dir="auto">Use this regex:</p>
<p dir="auto">FIND: <code>(&lt;title&gt;)(.\W*)</code><br />
REPLACE BY: <code>\1\U$2</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/73791</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73791</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Sun, 06 Feb 2022 21:01:36 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Sun, 06 Feb 2022 14:54:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21856">@hellena-crainicu</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto">First, your inverse video example is <strong>erroneous</strong> ( as <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> already told you ) ! You should have written this correct <em>INPUT</em> text with an <strong>ending</strong> tag :</p>
<pre><code class="language-diff">&lt;title&gt;semnificațiile elocinței lui burke&lt;/title&gt;
</code></pre>
<p dir="auto">Now, I’m sorry but my regex and the <strong><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a></strong> version work, both, as <strong>expected</strong> ! For instance, using the following sample, in a <strong>new</strong> tab :</p>
<pre><code class="language-diff">
s-ar părea că, de cîteva decenii încoace.

&lt;title&gt;semnificațiile elocinței lui burke&lt;/title&gt;

s-ar părea că, de cîteva decenii încoace.

&lt;title&gt;semnificațiile elocinței lui burke&lt;/title&gt;

s-ar părea că, de cîteva decenii încoace.

&lt;title&gt;semnificațiile elocinței lui burke&lt;/title&gt;

s-ar părea că, de cîteva decenii încoace.
</code></pre>
<ul>
<li>
<p dir="auto">Open the <strong><code>Replace </code></strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
<ul>
<li>
<p dir="auto">SEARCH  <strong><code>(?-i:&lt;title&gt;|(?!\A)\G)(?s:(?!&lt;/title&gt;).)*?\K(\w)(\w*)</code></strong>    ( I omitted the <strong>useless</strong> <strong><code>-i</code></strong> modifier, near the <strong>end</strong> of the regex ! )</p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\U${1}\E${2}</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">OR</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-i:&lt;title&gt;|(?!\A)\G)(?s:(?!&lt;/title&gt;).)*?\K(\w+)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\u$0</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Wrap around</code></strong> option ( <em>IMPORTANT</em> )</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click, <strong>once</strong>, on the <strong><code>Replace All</code></strong> button ( Do <strong>not</strong> use the <strong><code>Replace</code></strong> button ! )</p>
</li>
</ul>
<p dir="auto">You’ll get the <strong>expected</strong> <em>OUTPUT</em> text :</p>
<pre><code class="language-diff">
s-ar părea că, de cîteva decenii încoace.

&lt;title&gt;Semnificațiile Elocinței Lui Burke&lt;/title&gt;

s-ar părea că, de cîteva decenii încoace.

&lt;title&gt;Semnificațiile Elocinței Lui Burke&lt;/title&gt;

s-ar părea că, de cîteva decenii încoace.

&lt;title&gt;Semnificațiile Elocinței Lui Burke&lt;/title&gt;

s-ar părea că, de cîteva decenii încoace.
</code></pre>
<p dir="auto">As you can see, just <strong>each</strong> word of text between the tags <strong><code>&lt;title</code></strong> and <strong><code>&lt;/title&gt;</code></strong> are concerned, with their <strong>first</strong> letter in <strong>uppercase</strong> !</p>
<hr />
<p dir="auto">Now, in the <strong>second</strong> part of my previous post, when I spoke about cases <strong><code>A</code></strong>, <strong><code>B</code></strong>, …, I was <strong>not</strong> referring to your <strong>first</strong> challenge at all ! I just gave you <strong>general</strong> regexes, whatever text is embedded within <strong><code>&lt;title&gt;...........&lt;/title&gt;</code></strong> tags or <strong>not</strong> !</p>
<p dir="auto">BTW, I should have added the case <strong><code>F</code></strong> : I want to convert <strong>all</strong> letters in their <strong>lowercase</strong> form, leading to the regex S/R :</p>
<p dir="auto">SEARCH <strong><code>\w+</code></strong></p>
<p dir="auto">REPLACE <strong><code>\L$0</code></strong></p>
<hr />
<p dir="auto">Finally, I agree with you : the <strong>accentuated</strong> characters are <strong>not</strong> handled by these <strong>case</strong> modifiers ! <strong>Last</strong> year, I created an <strong>issue</strong> regarding this problem. Refer :</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9636" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9636</a></p>
<p dir="auto">Unfortunately, because of <strong><code>current global C Locale</code></strong> and some other stuff, there was a <strong>performance</strong> issue. So, this issue was <strong>reverted</strong> by <strong>Don</strong> :</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/commit/6844df039d54557a93a75752d651d5b9bb49f7ed" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/commit/6844df039d54557a93a75752d651d5b9bb49f7ed</a></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> : Yes, just an <strong>alternate</strong> method. Not essential ;-))</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73782</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73782</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 06 Feb 2022 14:54:43 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Sun, 06 Feb 2022 12:14:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said in <a href="/post/73769">Regex: Change the first lowercase letters of each word to capital letter on html tags</a>:</p>
<blockquote>
<p dir="auto">Now, Alan, a second and more simple version would be…</p>
</blockquote>
<p dir="auto">OK, but since we already have a recipe for replacing inside delimiters, I really don’t see value in simplification; just apply the recipe.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73773</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73773</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 06 Feb 2022 12:14:28 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Sun, 06 Feb 2022 10:52:12 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a></p>
<p dir="auto">Your regex replace all text, even outside &lt;title&gt; tag. I need to make the replacement only inside <code>&lt;title&gt; &lt;/title&gt;</code> tag.</p>
<p dir="auto">Please test your regex on this simple example:</p>
<pre><code>&lt;title&gt;Semnificațiile Elocinței Lui Burke&lt;title&gt;

S-Ar Părea CĂ, De CÎteva Decenii încoace.
</code></pre>
<p dir="auto">Also, check on the same example the cases you give.</p>
<p dir="auto">If someone wants to convert all capital letters (with diacritics) into lowercase letter, doesn’t work any of your cases.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73770</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73770</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Sun, 06 Feb 2022 10:52:12 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Sun, 06 Feb 2022 14:03:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21856">@hellena-crainicu</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto">Back to your <strong>first</strong> challenge :</p>
<blockquote>
<p dir="auto">I have this html tag:</p>
<p dir="auto">&lt;title&gt;sunrise must gone for a moment&lt;/title&gt;</p>
<p dir="auto">The Output must be:</p>
<p dir="auto">&lt;title&gt;Sunrise Must Gone For A Moment&lt;/title&gt;</p>
</blockquote>
<p dir="auto">Don’t forget, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21856">@hellena-crainicu</a>, that the <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a>’s solution works correctly <em>ONLY IF</em> :</p>
<ul>
<li>You moved the caret at the <strong>very beginning</strong> of current file</li>
</ul>
<p dir="auto">OR</p>
<ul>
<li>You ticked the <strong><code>Wrap around</code></strong> search option</li>
</ul>
<p dir="auto"><strong>before</strong> performing the replacement !</p>
<hr />
<p dir="auto">Now, <strong>Alan</strong>, a second and more simple version would be :</p>
<p dir="auto">SEARCH <strong><code>(?-i:&lt;title&gt;|(?!\A)\G)(?s:(?!&lt;/title&gt;).)*?\K(\w+)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\u$0</code></strong></p>
<p dir="auto">Indeed, the <strong>lowercase</strong> argument <strong><code>\u</code></strong>, in replacement, means : just change the <strong>first</strong> letter of <strong><code>$0</code></strong> in <strong>uppercase</strong> !</p>
<hr />
<p dir="auto">Now, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21856">@hellena-crainicu</a>, regarding your <strong>second</strong> challenge :</p>
<blockquote>
<p dir="auto">If I want to change multiple text files, convert all words from lowercase letter to capital letter, with Find In Files and replace all option, how can I do that?</p>
<p dir="auto">I try this regex:</p>
<p dir="auto">FIND: (.*)([A-Z]+)<br />
REPLACE BY: \L$1$2</p>
<p dir="auto">Seems to be good for all letters - except Diacritics (Accent Marks)</p>
</blockquote>
<p dir="auto">You do <strong>not</strong> seem to understand the role of the different <strong>case</strong> modifiers ! Here is a summary, which acts <em>ONLY</em> in the <strong>replacement</strong> regex !</p>
<ul>
<li>
<p dir="auto">The <strong><code>\u</code></strong> <strong>case</strong> modifier change the <strong>next</strong> char, of <strong>current</strong> replacement string, in <strong>uppercase</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>\l</code></strong> <strong>case</strong> modifier change the <strong>next</strong> char, of <strong>current</strong> replacement string, in <strong>lowercase</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>\U</code></strong> <strong>case</strong> modifier change <strong>all the next</strong> chars, of the <strong>current</strong> replacement string, in <strong>uppercase</strong>, except for a char <strong>preceded</strong> by <strong><code>\l</code></strong>, until a <strong><code>\L</code></strong> or <strong><code>\E</code></strong> <strong>case</strong> modifier occur</p>
</li>
<li>
<p dir="auto">The <strong><code>\L</code></strong> <strong>case</strong> modifier change <strong>all the next</strong> chars, of the <strong>current</strong> replacement string, in <strong>lowercase</strong>, except for a char <strong>preceded</strong> by <strong><code>\u</code></strong>, until a <strong><code>\U</code></strong> or <strong><code>\E</code></strong> <strong>case</strong> modifier occur</p>
</li>
<li>
<p dir="auto">The <strong><code>\E</code></strong> <strong>case</strong> modifier <strong>cancels</strong> any subsequent case changes, induced by the <strong><code>\U</code></strong> and/or <strong><code>\L</code></strong> <strong>case</strong> modifiers</p>
</li>
</ul>
<hr />
<p dir="auto">You said :</p>
<blockquote>
<p dir="auto">If I want to change multiple text files, convert all words from lowercase letter to capital letter, with Find In Files and replace all option, how can I do that?</p>
</blockquote>
<p dir="auto">Your phrasing is quite <strong>ambiguous</strong> ! Do you mean :</p>
<ul>
<li>
<p dir="auto"><strong><code>A</code></strong> I want to convert <strong>all</strong> letters in their <strong>uppercase</strong> form ?</p>
</li>
<li>
<p dir="auto"><strong><code>B</code></strong> I want to convert the <strong>first</strong> letter, of <strong>each</strong> word, in its <strong>uppercase</strong> form and leave all <strong>other</strong> letters, of <strong>each</strong> word, untouched ?</p>
</li>
<li>
<p dir="auto"><strong><code>C</code></strong> I want to convert the <strong>first</strong> letter, of <strong>each</strong> word, in its <strong>uppercase</strong> form and change all <strong>subsequent</strong> letters, of <strong>each</strong> word, in its <strong>lowercase</strong> form ?</p>
</li>
<li>
<p dir="auto"><strong><code>D</code></strong> I want to convert the <strong>first</strong> letter of a <strong>sentence</strong>, in its <strong>uppercase</strong> form and leave all <strong>other</strong> letters, of the sentence, untouched ?</p>
</li>
<li>
<p dir="auto"><strong><code>E</code></strong> I want to convert the <strong>first</strong> letter of a <strong>sentence</strong>, in its <strong>uppercase</strong> form and change all <strong>subsequent</strong> letters, of the sentence, in its <strong>lowercase</strong> form ?</p>
</li>
<li>
<p dir="auto">…</p>
</li>
</ul>
<p dir="auto">So, to my mind, if we consider <strong>traditional</strong> documents ( not <strong>code</strong> files ! ), this leads to these different <strong>regex</strong> S/R below :</p>
<ul>
<li>
<p dir="auto">For case <strong><code>A</code></strong> :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>\w+</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\U$0</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">For case <strong><code>B</code></strong> :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(\w)(\w*)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\u$1\E$2</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">For case <strong><code>C</code></strong> :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(\w)(\w*)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\u$1\L$2</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">For case <strong><code>D</code></strong> :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?:\.\W*|\R)\K\w</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\u$0</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">For case <strong><code>E</code></strong> :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?:\.\W*|\R)\K(\w).+?(?=\.|\R)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\u$1\L$2</code></strong></p>
</li>
</ul>
</li>
</ul>
<hr />
<p dir="auto">Regarding cases <strong><code>D</code></strong> and <strong><code>E</code></strong>, some regex <strong>improvements</strong> could be needed as there are still some <strong>drawbacks</strong> with some <strong>specific</strong> expressions ! If I test the regexes against the <strong><code>license.txt</code></strong> file, it would match, for instance :</p>
<ul>
<li>
<p dir="auto"><strong><code>h</code></strong> and <strong><code>h@free</code></strong>, in the part <strong>©2016 Don HO <a href="mailto:don.h@free.fr" rel="nofollow ugc">don.h@free.fr</a></strong>, giving <strong>©2016 Don HO <a href="mailto:don.H@free.fr" rel="nofollow ugc">don.H@free.fr</a></strong>, after replacement</p>
</li>
<li>
<p dir="auto">The letters <strong><code>a</code></strong>, <strong><code>b</code></strong> and <strong><code>c</code></strong>, in parts like <strong>a) You must cause…</strong>, giving <strong>A) you must cause…</strong>, after replacement</p>
</li>
</ul>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73769</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73769</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 06 Feb 2022 14:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Sat, 05 Feb 2022 21:07:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21856">@hellena-crainicu</a> said in <a href="/post/73708">Regex: Change the first lowercase letters of each word to capital letter on html tags</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> by the way, sir. One single question.</p>
<p dir="auto">If I want to change multiple text files, convert all words from lowercase letter to capital letter, with  <code>Find In Files and replace all</code> option, how can I do that?</p>
<p dir="auto">I try this regex:</p>
<p dir="auto">FIND:  <code>(.*)([A-Z]+)</code><br />
REPLACE BY:  <code>\L$1$2</code></p>
<p dir="auto">Seems to be good for all letters - except Diacritics (Accent Marks)</p>
</blockquote>
<p dir="auto">For this case, this regex Works but only in Sublime Text:</p>
<p dir="auto">FIND: <code>([A-Z])(.*)</code></p>
<p dir="auto">REPLACE BY: <code>\L$1$2</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/73757</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73757</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Sat, 05 Feb 2022 21:07:48 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Fri, 04 Feb 2022 15:35:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> by the way, sir. One single question.</p>
<p dir="auto">If I want to change multiple text files, convert all words from lowercase letter to capital letter, with  <code>Find In Files and replace all</code> option, how can I do that?</p>
<p dir="auto">I try this regex:</p>
<p dir="auto">FIND:  <code>(.*)([A-Z]+)</code><br />
REPLACE BY:  <code>\L$1$2</code></p>
<p dir="auto">Seems to be good for all letters - except Diacritics (Accent Marks)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73708</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73708</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Fri, 04 Feb 2022 15:35:41 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Thu, 03 Feb 2022 19:58:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> you right, IT WORKS</p>
<p dir="auto">thanks a lot</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73669</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73669</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Thu, 03 Feb 2022 19:58:08 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Thu, 03 Feb 2022 19:47:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21856">@hellena-crainicu</a> said in <a href="/post/73667">Regex: Change the first lowercase letters of each word to capital letter on html tags</a>:</p>
<blockquote>
<p dir="auto">Is not working, it change all the text, not just the &lt;title&gt; tag<br />
Try this text:</p>
</blockquote>
<p dir="auto">That text violates your original specification:</p>
<p dir="auto"><img src="/assets/uploads/files/1643917589570-6fcca1a4-cefa-4caa-a12e-cc711697495a-image.png" alt="6fcca1a4-cefa-4caa-a12e-cc711697495a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So of course it doesn’t work.<br />
Actually it does work because it is still trying to find the <code>&lt;/title&gt;</code> tag, and apparently is unsuccessful!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73668</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73668</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 03 Feb 2022 19:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Thu, 03 Feb 2022 19:41:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> Is not working, it change all the text, not just the &lt;title&gt; tag</p>
<p dir="auto">Try this text:</p>
<pre><code>&lt;title&gt;semnificațiile elocinței lui Burke&lt;title&gt;

S-ar părea că, de cîteva decenii încoace. în istoriile literaturii engleze, semnificațiile elocinței lui Burke nu mai tind să le pună în umbră pe acelea ale gîndirii lui estetice. Au existat, neîndoielnic, motive să se stăruie asupra trăsăturilor unui portret, conturat cu evidentă grandoare, al unei personalități care a înrîurit atît de profund mentalitatea politică britanică din epoca Războiului american pentru independență și a Revoluției franceze. Evoluția ideilor sale politice este, dealtfel extrem de caracteristică pentru o întreagă aripă a liberalilor care, după victoria iacobinilor în Franța, s-a îndreptat spre o poziție net conservatoare.
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/73667</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73667</guid><dc:creator><![CDATA[Hellena Crainicu]]></dc:creator><pubDate>Thu, 03 Feb 2022 19:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to Regex: Change the first lowercase letters of each word to capital letter on html tags on Thu, 03 Feb 2022 18:39:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21856">@hellena-crainicu</a></p>
<p dir="auto">Using the technique from <a href="https://community.notepad-plus-plus.org/post/62799">HERE</a>, your solution becomes:</p>
<p dir="auto">find: <code>(?-i:&lt;title&gt;|(?!\A)\G)(?s:(?!&lt;/title&gt;).)*?\K(?-i:(\w)(\w*))</code><br />
repl: <code>\U${1}\E${2}</code><br />
mode: Regular expression</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73666</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73666</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 03 Feb 2022 18:39:50 GMT</pubDate></item></channel></rss>