Page 1 of 1

Move a part of a file name

Posted: 12 Sep 2020 07:23
by AugerJ
Hello. Another renaming issue.
Some files look like this:
[YYMMDD] Artist - Song (Channel Programme) [Label; Tag].extension
and some — like this:
YYMMDD Artist - Song (Channel Programme) [Label; Tag].extension
Sometimes:
[YYMMDD] Artist - Song + Another Song (Channel Programme) [Label; Tag].extension
YYMMDD Artist - Song + Another Song (Channel Programme) [Label; Tag].extension
YYMMDD may be 150718 or 170812 etc.

Is there a way to automate moving the date so the files would look like this:
Artist - Song (YYMMDD Channel Programme) [Label; Tag].extension
Artist - Song + Another Song (YYMMDD Channel Programme) [Label; Tag].extension
?
If the square brackets in the [Label; Tag] part are in the way that part can be removed.
In this case,
[YYMMDD] Artist - Song + Another Song (Channel Programme).extension
YYMMDD Artist - Song + Another Song (Channel Programme).extension
etc — into:
Artist - Song + Another Song (YYMMDD Channel Programme).extension
etc.

Re: Move a part of a file name

Posted: 12 Sep 2020 07:50
by highend
^\[?(\d{6})\]? ([^(]+?\()([^)]+?\))(.*?)(\.[^.]+?$) > $2$1 $3$4$5

Re: Move a part of a file name

Posted: 12 Sep 2020 10:43
by AugerJ
Thank you very much.