Renaming folders - pattern
Hi.
I downloaded and currently trying this program, I can already say that is excellent and a real time saver.
I've done some batch renaming of folders without any trouble, but now I can't figure out how to rename some folders like this:
Original name:
[ABC] - 1000 - yadda yadda yadda
Now, I want it to be renamed to:
[ABC 1000] yadda yadda yadda
Is it possible? How can I do it?
Thanks very much!
I downloaded and currently trying this program, I can already say that is excellent and a real time saver.
I've done some batch renaming of folders without any trouble, but now I can't figure out how to rename some folders like this:
Original name:
[ABC] - 1000 - yadda yadda yadda
Now, I want it to be renamed to:
[ABC 1000] yadda yadda yadda
Is it possible? How can I do it?
Thanks very much!
Try List replace with two entries...
1) Replace "] -" with nothing
2) Replace " -" with "]"
1) Replace "] -" with nothing
2) Replace " -" with "]"
Reply to #2:
Thanks very much for your message, but I unfortunately made a typo in the original folder name:
the original it's really like this:
[ABC] - 1000 - yadda yadda - yadda yadda
your formula almost did it. it became like this:
[ABC 1000] yadda yadda] yadda yadda
I tried to remove the extra ] but without success.
In fact, what I really want is to become like this:
[ABC 1000] yadda yadda - yadda yadda
Would you help me again? Thanks a lot.
Thanks very much for your message, but I unfortunately made a typo in the original folder name:
the original it's really like this:
[ABC] - 1000 - yadda yadda - yadda yadda
your formula almost did it. it became like this:
[ABC 1000] yadda yadda] yadda yadda
I tried to remove the extra ] but without success.
In fact, what I really want is to become like this:
[ABC 1000] yadda yadda - yadda yadda
Would you help me again? Thanks a lot.
Reply to #3:
1) Replace "] -" with nothing
2) Replace "\d\K -" with "]"
Use regular expressions
The regular expression "\d\K -" will only match " -" if it is preceded by a decimal digit
("\K" is an instruction to forget any preceding matching characters - in this case the final zero).
1) Replace "] -" with nothing
2) Replace "\d\K -" with "]"
Use regular expressions
The regular expression "\d\K -" will only match " -" if it is preceded by a decimal digit
("\K" is an instruction to forget any preceding matching characters - in this case the final zero).
Reply to #4:
Wow, that did it, thanks very much!
I hope I can master this program the same way as you. :)
I just registered after this, it's worth every dollar, and the registration message is funny, haha. :)
Wow, that did it, thanks very much!
I hope I can master this program the same way as you. :)
I just registered after this, it's worth every dollar, and the registration message is funny, haha. :)