<?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[Renaming  tags using HTML file names]]></title><description><![CDATA[<p dir="auto">I would like to Batch Title hundreds of html files using there File Names with Spaces Added &amp; the Extension removed.</p>
<p dir="auto">AlmostPersuaded.html “File to be Titled”</p>
<p dir="auto">I would like the Title tag to be, with Spaces in front of the Capitol letters &amp; the Extension .html Removed:</p>
<p dir="auto">Almost Persuaded “Title for tag”</p>
<p dir="auto">Renaming utilities &amp; all searches seem to do the reverse. Can this be done with Notepad++ or a plugin to it. I have done some simply amazing things with Notepad++ so I know it is capable!</p>
<p dir="auto">Any help, thoughts or ideas appreciated. Thank You, Kevin</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16686/renaming-title-tags-using-html-file-names</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 11:34:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16686.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Nov 2018 00:17:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Renaming  tags using HTML file names on Tue, 27 Nov 2018 14:42:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a>  I can not Thank You enough! I started to refurbish a mainly East Coast, Nova Scotia Music website just for fun “No Profit”. This script was used in the Retro Lyrics section. You can check out the site here: RetroLyrics section <a href="http://www.rbops.com/RetroLyrics/SevenSpanishAngels.html" rel="nofollow ugc">http://www.rbops.com/RetroLyrics/SevenSpanishAngels.html</a>)</p>
<p dir="auto">Originally 20 years ago the Lyrics were RTF files with DOC extensions that even if you downloaded them, you could not open them. ha ha So you can imagine after some repair to these files I am impressed. I made most of the site mobile friendly &amp; installed many MP3 players on the artists pages.</p>
<p dir="auto">All pretty much retired players who had all pretty much played with groups you grew up listening to. Some good ole music.</p>
<p dir="auto">Thank You Mr. PeterJones &amp; I will definitely be learning some Perl from your example!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36841</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36841</guid><dc:creator><![CDATA[Kevin Wood]]></dc:creator><pubDate>Tue, 27 Nov 2018 14:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to Renaming  tags using HTML file names on Tue, 27 Nov 2018 14:19:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eko-palypse" aria-label="Profile: Eko-palypse">@<bdi>Eko-palypse</bdi></a> Thank You, after many hours of tryin’ that’s kind of what I was figuring. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36839</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36839</guid><dc:creator><![CDATA[Kevin Wood]]></dc:creator><pubDate>Tue, 27 Nov 2018 14:19:21 GMT</pubDate></item><item><title><![CDATA[Reply to Renaming  tags using HTML file names on Tue, 27 Nov 2018 11:35:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kevin-wood" aria-label="Profile: Kevin-Wood">@<bdi>Kevin-Wood</bdi></a></p>
<p dir="auto">using a macro together with the clipboard is only useful if you need the current string over and over again.<br />
A macro doesn’t save the action “get clipbaord content”, it saves the real string which is in the clipboard at that time.<br />
You can check this in the shortcuts.xml file.</p>
<p dir="auto">Eko</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36831</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36831</guid><dc:creator><![CDATA[Eko palypse]]></dc:creator><pubDate>Tue, 27 Nov 2018 11:35:11 GMT</pubDate></item><item><title><![CDATA[Reply to Renaming  tags using HTML file names on Tue, 27 Nov 2018 01:54:33 GMT]]></title><description><![CDATA[<p dir="auto">Wow Thank You, I’ll give it a shot. I spent the whole day today trying to do a macro. It seems to work however each time Copy Current Filename to Clipboard is used it always seems to be from the time before. Even though that file was saved &amp; moved to the next tab. I do not get that. :(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36820</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36820</guid><dc:creator><![CDATA[Kevin Wood]]></dc:creator><pubDate>Tue, 27 Nov 2018 01:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to Renaming  tags using HTML file names on Mon, 26 Nov 2018 20:31:36 GMT]]></title><description><![CDATA[<p dir="auto">You might be able to do it within Notepad++ using one of the scripting plugins (probably harder in NppExec, really), but since it wouldn’t likely be making use of the uniqueness, you could do it directly in your language of choice, without the Notepad++ overhead.</p>
<p dir="auto">------</p>
<ul>
<li>Scripting Plugins Links
<ul>
<li>PythonScript
<ul>
<li><a href="http://npppythonscript.sourceforge.net/" rel="nofollow ugc">PythonScript HOME</a></li>
<li><a href="https://github.com/bruderstein/PythonScript/releases" rel="nofollow ugc">PythonScript DOWNLOAD</a></li>
<li>HELP = <code>Plugins &gt; Python Script &gt; Context-Help</code></li>
<li><a href="https://www.python.org/about/gettingstarted/" rel="nofollow ugc">Getting Started with Python</a></li>
</ul>
</li>
<li>LuaScript
<ul>
<li><a href="https://github.com/dail8859/LuaScript" rel="nofollow ugc">LuaScript HOME</a></li>
<li><a href="https://github.com/dail8859/LuaScript/releases" rel="nofollow ugc">LuaScript DOWNLOAD</a></li>
</ul>
</li>
<li>jN: JavaScript for Notepad++
<ul>
<li><a href="https://github.com/sieukrem/jn-npp-plugin/wiki" rel="nofollow ugc">jN WIKI</a></li>
<li><a href="https://github.com/sieukrem/jn-npp-plugin/releases" rel="nofollow ugc">jN DOWNLOAD</a></li>
</ul>
</li>
<li><a href="http://downloads.sourceforge.net/project/npp-plugins/" rel="nofollow ugc">NppExec</a></li>
</ul>
</li>
</ul>
<p dir="auto">======</p>
<p dir="auto">If you had gnu/linux like commands in your path (for example, GnuWin32 from <a href="http://gnuwin32.sourceforge.net/packages.html" rel="nofollow ugc">http://gnuwin32.sourceforge.net/packages.html</a>, or using git-bash, or windows 10 pro’s new linux subsystem), it could probably be done through the command line, using a for loop and an in-place <code>sed</code> command.</p>
<p dir="auto">If you wanted a standalone programming language route (like Perl, Python, or Lua), here is an example Perl script I just whipped up in a few minutes, using <a href="https://strawberryperl.com" rel="nofollow ugc">strawberry perl</a>.  (I made it verbose, so that it was easily commented, so you could translate to another language of your choice, if you don’t have/want a perl interpreter):</p>
<pre><code>#!perl
# assuming you saved this script as c:\path\to\script.pl
# assuming strawberry perl [https://strawberryperl.com/] (or similar) is in your path
# open cmd.exe in the directory with the files, and run
#       perl c:\path\to\script.pl
use autodie;    # open and similar commands will give meaningful errors automatically

foreach $f ( &lt;*.html&gt; ) {                   # loop through the filenames in the current directory
    my $ft = $f;                            # grab the name of the file
        $ft =~ s/.html//;                   #   remove the .html at the end
        $ft =~ s/(?-i)\S\K([A-Z])/ $1/g;    #   look for all capitals with a non-space character before it, and put a space before  -- this is using a regular expression syntax similar to Notepad++'s PCRE syntax
        warn "ft =&gt; $ft\n";
    open my $in_fh, '&lt;', $f;                # open the current file for input
    open my $out_fh, '&gt;', "$f.tmp";         # open a .tmp for output
    local $/ = "&lt;title&gt;";                   # we'll tell perl to grab everything until the first &lt;title&gt; start...
    my $str = &lt;$in_fh&gt;;                     # ... and grab it ...
    print {$out_fh} $str;                   # ... and print it to the output
    $/ = "&lt;/title&gt;";                        # now we want to grab until the end of this &lt;/title&gt;
    $str = &lt;$in_fh&gt;;                        # grab until the end  &lt;/title&gt;
    print {$out_fh} "$ft&lt;/title&gt;";          #
    $/ = "\n";                              # now grab normal lines...
    print {$out_fh} $_ while $_ = &lt;$in_fh&gt;; # pipe through the rest of the file unchanged
    close $out_fh;
    close $in_fh;
    rename("$f.tmp", $f);                   # rename .tmp to the original name...
}
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/36809</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36809</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 26 Nov 2018 20:31:36 GMT</pubDate></item><item><title><![CDATA[Reply to Renaming  tags using HTML file names on Mon, 26 Nov 2018 02:48:07 GMT]]></title><description><![CDATA[<p dir="auto">The empty &lt;title&gt;  &lt;/title&gt; tag is in the html files already. So if the files name could have spaces before the Capitol letters &amp; the extension .html removed. The part about Replacing “&lt;title&gt;” with “&lt;title&gt;Almost Persuaded” should be the easier part.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36769</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36769</guid><dc:creator><![CDATA[Kevin Wood]]></dc:creator><pubDate>Mon, 26 Nov 2018 02:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to Renaming  tags using HTML file names on Mon, 26 Nov 2018 01:08:14 GMT]]></title><description><![CDATA[<p dir="auto">I see some possible hope using NppExec plugin if anyone could show the how?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36766</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36766</guid><dc:creator><![CDATA[Kevin Wood]]></dc:creator><pubDate>Mon, 26 Nov 2018 01:08:14 GMT</pubDate></item></channel></rss>