Topic: I want to insert a "-" two letters before the end of the filename
I want to insert a "-" two letters before the end of the filename.
EXAMPLE: Test NAME Siren.txt
EXPRESSION: %b(1,-2) - %b(-2,).*
RESULT: Test NAME Sir - en.txt
EXPLANATIONS:
%b(1,-2) the base file name, but only the char from the begin to the second last char [Test NAME Sir]
- an space, an dash and an another space [Test NAME Sir - ]
%b(-2,) the base file name, but start at the second char from the right, till the end [Test NAME Sir - en]
. the dot between file name and extension [Test NAME Sir - en.]
* the extension (in this case because it's on the right side of the dot) [Test NAME Sir - en.txt]
The expression
%b(1,-2) - %b(-2,).*
could also be
%b(1,-2) - %b(-2).*
or
%b(1,-2) - %b(-2,).%e
or
%b(1,-2) - %f(-7)
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.
------------------------------------------------------------------------------------------------------------
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