Flip around a point

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

Flip around a point

Postby thegoodguy » Sun Sep 11, 2011 5:40 pm

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.
thegoodguy
 
Posts: 3
Joined: Sun Jun 22, 2008 9:35 am

Re: Flip around a point

Postby Stefan » Mon Sep 12, 2011 8:17 am

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
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to Suggestions