Move a part of a file name

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
AugerJ
Posts: 54
Joined: 19 Jul 2016 06:27

Move a part of a file name

Post 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.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Move a part of a file name

Post by highend »

^\[?(\d{6})\]? ([^(]+?\()([^)]+?\))(.*?)(\.[^.]+?$) > $2$1 $3$4$5
One of my scripts helped you out? Please donate via Paypal

AugerJ
Posts: 54
Joined: 19 Jul 2016 06:27

Re: Move a part of a file name

Post by AugerJ »

Thank you very much.

Post Reply