thegoodguy wrote:Hi,
It would be really useful if there was a feature to flip a filename around a position in the filename, or around a specific string in a filename.
eg.
"00001111.txt" flipped after 4th character becomes "1111000.txt"
"A Christmas Carol - Charles Dickens" flipped around " - " becomes "Charles Dickens - A Christmas Carol"
It would be sooo useful for renaming music and literature files.
Nonetheless, thanks for an awesome utility.
You can do that already with an little knowledge about regular expressions.
The following examples works for one single delimiter pro file name. For more then one dot or dash the regex perhaps needs to be modified.
Examples
FROM:
"00001111.txt" TO:
flipped
after 4th character becomes
"1111000.txt"DO:
RegEx(1)
Match: (.{4})(.+)
Replace: \2\1
FROM:
"A Christmas Carol - Charles Dickens" TO:
flipped around
" - " becomes
"Charles Dickens - A Christmas Carol"DO:
RegEx(1)
Match: (.+) - (.+)
Replace: \2 - \1