#1 2014-05-16 09:05

tigerjack89
Member
Registered: 2014-05-16
Posts: 1

Rearrange

Hi there. It's my first post so... sorry if I'm doing something wrong smile
I have a lot of audio files that are named in this manner
"artist" - "title" feat. "other artists"
eg1 Bob Marley & The Wailers - All In One - Part1 Feat. Lee Perry

Some of them have round brackets as delimiters, such as
eg2 Bob Marley & The Wailers - All In One - Part1 (Feat. Lee Perry)

What I'd like to do is
1. search for string "Feat."
2. move all subsequent words before the first "-"
3. replace "Feat." with ";"

ie Bob Marley & The Wailers; Lee Perry - All In One - Part1

Is there a way to do this?
Thanks in advance for your input smile

Offline

#2 2014-05-16 14:52

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Rearrange

Hi and welcome tiger.

I would do that by utilizing regular expressions.


FROM:
Bob Marley & The Wailers - All In One - Part1 Feat. Lee Perry.ext

TO:
Bob Marley & The Wailers; Lee Perry - All In One - Part1.ext

So match:
(Bob Marley & The Wailers)( - All In One - Part1) (Feat.)( Lee Perry).ext
In RegEx slang:
(            .+?         )( - .+                ) (Feat.)( .+       )
And reorder was was captured into the parentheses:
$1;$4$2

USE:

RegEx rule
Express: (.+?)( - .+) (Feat.)( .+)
Replace: $1;$4$2
(skip extension)

.


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

Board footer

Powered by FluxBB