How to move = to front?

Advanced Renamer forum
#1 : 23/09-20 18:05
SAM
SAM
Posts: 9
Hi.

File name:

INV_20200924_IVA01_$100_CUSTOMER Z
INV_20200924_IVA01_$100_CUSTOMER Z=IVB01
INV_20200924_IVA02_$102_CUSTOMER Y
INV_20200924_IVA02_$102_CUSTOMER Y=IVB02

How to rename as follow?

INV_20200924_IVA01_$100_CUSTOMER Z
INV_20200924_IVA01=IVB01_$100_CUSTOMER Z
INV_20200924_IVA02_$102_CUSTOMER Y
INV_20200924_IVA02=IVB02_$102_CUSTOMER Y

Thank you.


23/09-20 18:05
#2 : 23/09-20 23:21
David Lee
David Lee
Posts: 542
This should do the trick...

Replace: (.*)(_\$.*)(=.*)
With: \1\3\2
Use regular expressions


23/09-20 23:21
#3 : 23/09-20 23:46
SAM
SAM
Posts: 9
Reply to #2:

Thank you Mr. David Lee. It works!


23/09-20 23:46
#4 : 23/09-20 23:53
SAM
SAM
Posts: 9
Reply to #2:

How about this?

File name:

INV_20200924_IVA01_USD100.50_CUSTOMER Z
INV_20200924_IVA01_USD100.50_CUSTOMER Z=IVB01
INV_20200924_IVA02_USD102.99_CUSTOMER Y
INV_20200924_IVA02_USD102.99_CUSTOMER Y=IVB02

How to rename as follow?

INV_20200924_IVA01_USD100_CUSTOMER Z
INV_20200924_IVA01=IVB01_USD100_CUSTOMER Z
INV_20200924_IVA02_USD102_CUSTOMER Y
INV_20200924_IVA02=IVB02_USD102_CUSTOMER Y


23/09-20 23:53
#5 : 24/09-20 09:32
David Lee
David Lee
Posts: 542
Reply to #4:
Replace: (.*)(_USD\d+)(\.\d*)?(_[^=]*)(=.*)?
With: \1\5\2\4
Use regular expressions


24/09-20 09:32