Renaming folders - pattern

Advanced Renamer forum
#1 : 20/10-20 23:12
Raphael
Posts: 3
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!
#2 : 21/10-20 00:12
David Lee
Posts: 1125
Try List replace with two entries...

1) Replace "] -" with nothing
2) Replace " -" with "]"
#3 : 21/10-20 01:59
Raphael
Posts: 3
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.

edited: 21/10-20 02:00
#4 : 21/10-20 20:38
David Lee
Posts: 1125
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).
#5 : 22/10-20 00:01
Raphael
Posts: 3
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. :)