1 (edited by Stefan 2016-06-25 23:16:23)

Topic: How to change the case on a part of name only

FROM:
Queen - Bohemian Rhapsody.flv
Snap - Cult of Snap.mp3
Technotronic - Megamix.mp3


TO:
QUEEN - Bohemian Rhapsody.flv
SNAP - Cult of Snap.mp3
TECHNOTRONIC - Megamix.mp3


USE:
%ub[1] - %b[2].%e






EXPLANATION:

  %b              : the "base" name
   [1] and [2] : substring of name, split at given separator
  %ub            : all characters upper case, here of the "base" name
   %e             : the name extension


So
%ub[1]  gives you the first substring of name, split at separator, and put all characters into upper case.
"- "         is Space-Hyphen-Space manually inserted by you.
%b[2]    gives you the second substring of name, split at given separator.
%e        gives you the name extension.




Detailed explanation:

Every variable can be postfixed by a "[]" modifier.
It will be split into an array of substrings following the
specified separator characters.
The usage is: "[ i, "s" ]"
   i   : number of the substring to extract.
         If negative, the extraction is done from the end.
         If "0" (zero), it's equivalent to the complete string
         without the beginning and ending spaces.
   s   : list of separator characters, optional.
         If it is not specified, the list defined in
         "Options/Modifications" is used.

I have set "File > Options/Modifications > Array elements separator" to " - "



You can put one or more character modifiers just after the "%":
   @ : accented characters to standard ASCII
       ('é' to 'e', 'ü' to 'u', 'Á' to 'A' ...).
   u : all characters upper case.
   l : all characters lower case.
   U : first character of each word upper case, the others
       lower case. The words are separated by the characters
       specified in "Options/Modifications".
   L : first character uppercase, the rest lowercase.


See Siren Help (?) for more explanation.







Press the F1-key while you are in Siren to read more about.
Enjoy Siren,  No installation needed, unzip and run. Siren stores it settings into an ini file, not in the Registry.
------------------------------------------------------------------------------------------------------------

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html

                                          Now for Windows Win32 and GNU/Linux also:
                                          http://scarabee-software.net/forum/viewtopic.php?id=273