Page 1 of 1

How would I accomplish this file name adjustment?

PostPosted: Sun Jan 21, 2018 6:18 pm
by Fatbat
I have a few files like this...

Artist Name - Song Title - Remix Artist.mp3

I want to remove the second dash, the space following it, and enclose the Remix Artist in brackets, like this...

Artist Name - Song Title (Remix Artist).mp3

How might I go about doing this? Thank you as always!

Re: How would I accomplish this file name adjustment?

PostPosted: Mon Jan 22, 2018 3:47 am
by therube
1:RegEx
Code: Select all
Match:  (.*) - (.*)
Replace:  \1 (\2)

Re: How would I accomplish this file name adjustment?

PostPosted: Mon Feb 26, 2018 7:09 pm
by Fatbat
That works great! Thank you for that. How about...

Song Title - Artist Name - Remix Artist.mp3

to

Artist Name - Song Title (Remix Artist).mp3

?

Thank you once again!

Re: How would I accomplish this file name adjustment?

PostPosted: Tue Feb 27, 2018 6:00 pm
by Emerkamp
Hi,


Code: Select all
Match:
(.*) - (.*) - (.*)
Replace:
\2 - \1 (\3)

Re: How would I accomplish this file name adjustment?

PostPosted: Mon Mar 19, 2018 2:28 am
by Fatbat
Once again, you guys rock.

One more I cannot figure out. I have a bunch of files reword by DJ "S"... however in my case changes I've somehow made DJ "S" in to DJ "s" and replace doesn't seem to want to let me make DJ "s" back into DS "S". I assume it's because it's not liking the " " marks.

Any ideas to get these back to the right capitalization?

Thanks!

Re: How would I accomplish this file name adjustment?

PostPosted: Mon Mar 19, 2018 6:23 am
by Emerkamp
Hi,

Not sure on this one, but Quotation marks " " are illegal / Reserved in Windows Os. You can use ' ' , not " ".
Are you on a different Os.

Re: How would I accomplish this file name adjustment?

PostPosted: Mon Mar 19, 2018 4:05 pm
by therube
If they look like "quotes", try copying them & pasting what you copied to be the Replace part of your 3:Replace.

As not everything that looks like quotes are "quotes". These are valid (& different):
Code: Select all
This is a “test“.TXT
this is a “test”.TXT