<?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[Batch Convert case in multiple open files (maybe regex?)]]></title><description><![CDATA[<p dir="auto">Let’s say I have 10 text files all open at once, and I want to convert the text in all of those to UPPER CASE. Right now, I have to start in the first file, hit CTRL A, then CTRL-SHIFT-U. File #1 done. Then, I have to click on next file tab, and “rinse &amp; repeat” file by file. I’m looking for a way to change case on these opened files all at once. There’s no such thing as a magical expanded version of CTRL-A, which selects all text <strong>in ALL OPENED TEXT FILES</strong>? That would be cool, but probably not. Yes, I could macro record the CTRL-A and CTRL-SHIFT-U combo, but I’d still have to go from file to file and run it.<br />
What about some REGEX syntax that would accomplish the same thing? I’m still finding my way with REGEX, so could use syntax examples. Would like to have the syntax for UPPERCASE, lowercase, Proper Case, and Sentence case, if anyone can help. Thx! - Chris</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21569/batch-convert-case-in-multiple-open-files-maybe-regex</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 15:54:14 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21569.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jul 2021 15:03:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Thu, 19 Aug 2021 20:36:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> That (and as you said, a little patience) worked. The [a-z]+ cuts the time in half.<br />
Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69093</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69093</guid><dc:creator><![CDATA[Chris Tanguay 0]]></dc:creator><pubDate>Thu, 19 Aug 2021 20:36:30 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Thu, 19 Aug 2021 20:19:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/22686">@Chris-Tanguay-0</a> ,</p>
<p dir="auto">They may not be <em>huge</em>, but if you’re doing FIND = <code>.</code> and REPLACE = <code>\U$0</code>, then it’s trying to upper-case every byte in the file, even on bytes that are not letters or already uppercase.  Sometimes, patience is required: even if it’s only 1Mb, that’s still a million attempts to uppercase the character.</p>
<p dir="auto">Also, you might want to restrict it to only work on lowercase letters, like FIND = <code>[a-z]+</code> and the same replacement.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69091</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69091</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 19 Aug 2021 20:19:53 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Thu, 19 Aug 2021 20:15:00 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> I’m having a strange thing going on. I have maybe 8 text files open at same time, not all that long (they are subtitle srt files). I want them all upper case for text. But, when I try replacing .  with \U$0 and I choose REPLACE IN ALL FILES, Notepad+ locks up. I let it sit there for a good 2 minutes thinking it was just taking a long time, but nope, I had to crash out of the program. I wonder why it’s having issues with this.<br />
Any thoughts on this, or… maybe some alternate syntax I can try. I’m running on a fairly robust windows 10 machine, so it’s not processing power…<br />
Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69090</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69090</guid><dc:creator><![CDATA[Chris Tanguay 0]]></dc:creator><pubDate>Thu, 19 Aug 2021 20:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Mon, 09 Aug 2021 20:06:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, all. Just figured out why. I’m at work, and our Sophos firewall says site is hosted from Cyprus. Just had to ask our IT people to unblock. Good times!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68738</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68738</guid><dc:creator><![CDATA[Chris Tanguay 0]]></dc:creator><pubDate>Mon, 09 Aug 2021 20:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Mon, 09 Aug 2021 19:37:57 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Very much alive for me.</p>
</blockquote>
<p dir="auto">and for me.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/22686">@Chris-Tanguay-0</a> ,  you might try again – maybe you had a brief network issue.  Or maybe you’re using IPv6, which apparently <a href="https://github.com/notepad-plus-plus/npp-usermanual/issues/132" rel="nofollow ugc">sometimes has issues reaching the online user manual</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/68736</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68736</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 09 Aug 2021 19:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Mon, 09 Aug 2021 19: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/22686">@Chris-Tanguay-0</a> said in <a href="/post/68733">Batch Convert case in multiple open files (maybe regex?)</a>:</p>
<blockquote>
<p dir="auto">I’ve been trying to access <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#regular-expressions</a>, but page keeps timing out. Anyone else? Maybe it’s dead. I’ll poke around some of the other pages referenced on the FAQ</p>
</blockquote>
<p dir="auto">Very much alive for me.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68734</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68734</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 09 Aug 2021 19:35:41 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Mon, 09 Aug 2021 19:10:42 GMT]]></title><description><![CDATA[<p dir="auto">Thanks again! This will save me lots of time (and clicks).<br />
Weird, I’ve been trying to access <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#regular-expressions</a>, but page keeps timing out. Anyone else? Maybe it’s dead. I’ll poke around some of the other pages referenced on the FAQ<br />
Love notepad++ more each day.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68733</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68733</guid><dc:creator><![CDATA[Chris Tanguay 0]]></dc:creator><pubDate>Mon, 09 Aug 2021 19:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Mon, 09 Aug 2021 15:28:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/22686">@Chris-Tanguay-0</a></p>
<p dir="auto">(1) Yep, <code>\L$0</code><br />
(2) Search for <code>(\w)(\w+)</code> and replace with <code>\U${1}\L${2}</code> (depending up data there may be some limitations)<br />
(3) I don’t think there is going to be a nice equivalent for “sentence case”<br />
(4) Syntax is “match any character” (from the <code>.</code>) and replace the entire match (from the <code>$0</code>) with its uppercase equivalent (from the leading <code>\U</code>)<br />
(5) Great starting info:  see the FAQ <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">HERE</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/68727</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68727</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 09 Aug 2021 15:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Mon, 09 Aug 2021 15:19:27 GMT]]></title><description><![CDATA[<p dir="auto">Alan, tested it, worked perfect! Replacing . with \U$0 (in all files) changed all text to UPPER CASE in one step.<br />
Thank you! I’ve macro’d that and will be using it a lot.<br />
Can I ask for a few more syntaxes?<br />
(1) What would be the Regex to change all to lower case? Would it be replace . with \L$0<br />
(2) … To Proper Case?<br />
(3) … To Sentence case?<br />
(4)  Can you briefly verbalize what the syntax means here? Just trying to understand it better.<br />
(5) Here’s the better question I should be asking. I can see the WOW factor and all the potential in learning all this REGEX. I want to learn this stuff. Is there a site you’d recommend as a way to get into understanding REGEX that is NOOB-friendly? I’ve done some coding in the past, but never have tackled regex. Any recommedations? Thx!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68726</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68726</guid><dc:creator><![CDATA[Chris Tanguay 0]]></dc:creator><pubDate>Mon, 09 Aug 2021 15:19:27 GMT</pubDate></item><item><title><![CDATA[Reply to Batch Convert case in multiple open files (maybe regex?) on Wed, 28 Jul 2021 15:26:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/22686">@Chris-Tanguay-0</a></p>
<p dir="auto">So you have to do a <em>Replace in Files</em> to do something like this.<br />
Yes, use regex to replace <code>.</code> with <code>\U$0</code>.<br />
There are other ways to do it, of course, you could do the find on non-uppercase and only convert those matches, for instance.<br />
I’d say to definitely do a backup on all your files first!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68405</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68405</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 28 Jul 2021 15:26:29 GMT</pubDate></item></channel></rss>