How to create folder structure based on file names, move and rename files accordingly?

Advanced Renamer forum
#1 : 05/12-19 07:14
Gerald Bader
Posts: 2
Hi!

I have many files names like:
2016-03,PTT-20160120-WA0001.opus.waptt
2016-04,PTT-20160121-WA0001.opus.waptt
2016-12,PTT-20160318-WA0001.opus.waptt
2016-20,PTT-20160512-WA0002.waptt.waptt
2016-22,PTT-20160531-WA0002.waptt.waptt
2015-44,PTT-20151102-WA0001.aac.waptt
2015-45,PTT-20151105-WA0001.aac.waptt

The folder/file structure I need is:
2016-03\PTT-20160120-WA0001.opus.waptt
2016-04\PTT-20160121-WA0001.opus.waptt
2016-12\PTT-20160318-WA0001.opus.waptt
2016-20\PTT-20160512-WA0002.waptt.waptt
2016-22\PTT-20160531-WA0002.waptt.waptt
2015-44\PTT-20151102-WA0001.aac.waptt
2015-45\PTT-20151105-WA0001.aac.waptt

How can I achieve that with Advanced Renamer?

edited: 05/12-19 10:05
#2 : 05/12-19 10:08
Gerald Bader
Posts: 2
Reply to #1:

Hi again!

I found the solution:

- Batch Mode: Move
- Output folder: <Substr:1:,>

- Add method 'Replace'
- Text to be replaced: .*,
- Check 'Use regular expression'

Finished!
Maybe this is of help for anybody else ...
#3 : 05/12-19 13:48
David Lee
Posts: 1125
Reply to #2:
You could also use the New Name method with the tag <RSubstr:1:,>

This solution has a rather pleasing symmetry!
#4 : 05/12-19 13:49
David Lee
Posts: 1125