IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> 'ft xx)' from Title to end of artist and remove '(prod. xxx)' from title, RegEx help request
clark1
post May 24 2012, 18:27
Post #1


Member


Group: Members
Posts: 4
Joined: 24-May 12
Member No.: 16489
Mp3tag Version: 2.51



Hello,


I figured-out how to remove the (ft xx) part of the example below:


Ex.

Artist:

Jon Doe

Title:

Ballad (ft Mary Doe)

' ft.+?\)'


So, the Title would become

Ballad



But, what if I wanted to append 'ft Mary Jane' to the end of the artist tag? So, Artist would become...

Jon Doe ft Mary Doe



Also, how do I remove all (prod. Mike Doe) or (prod Mike Doe) tags from the Title field (should be super easy, right?)


Thanks in advance for your help.
Go to the top of the page
 
+Quote Post
pone
post May 24 2012, 18:44
Post #2


Member


Group: Full Members
Posts: 1572
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



I've answered that question a couple of times in various variations.

I think that here matches your case:
http://forums.mp3tag.de/index.php?showtopi...ost&p=59172

If not, have a look at the other threads around this topic
http://forums.mp3tag.de/index.php?act=Sear...title+%2Bartist



For removing (prod. xx), why don't you do it the same way as you removed (ft. xx)?
Go to the top of the page
 
+Quote Post
clark1
post May 24 2012, 20:43
Post #3


Member


Group: Members
Posts: 4
Joined: 24-May 12
Member No.: 16489
Mp3tag Version: 2.51



Hello Pone,

I appreciate your response, and I have now further scoured the forum, including your suggested links, but I'm still having issues.

Here is the closest I've come.


Artist: Joe Blow

Title: SongX (ft Jane Blow) [INSTRUMENTAL]


Guess Values

%artist% $regexp(%title%,(.*) ((?:featuring|feat|ft)\.?) (.*),$2 $3 +++ $1)

%artist% +++ %title%


But, the problem is that 'Artist' becomes...


Joe Blow ft Jane Blow) [INSTRUMENTAL]


I'd like it to be 'Joe Blow ft Jane Blow'



... and 'Title' becomes


Song X


I'd like it to become SongX [INSTRUMENTAL]



Thanks.
Go to the top of the page
 
+Quote Post
DetlevD
post May 24 2012, 21:12
Post #4


Member


Group: Full Members
Posts: 4130
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.54



QUOTE (clark1 @ May 24 2012, 21:43) *
... I'm still having issues. ...

Your request has been solved multiple times in nearly all variations. Search the forum posts.

Maybe I can add another approach.

Begin Action Group Test_2012#20120524.clark1

Action #1
Actiontype 7: Import tag fields (guess values)
Source format __: %TITLE%
Guessing pattern: %TITLE% (%FEAT%) %TITLE2%

Action #2
Actiontype 5: Format value
Field ______: ARTIST
Formatstring: %ARTIST% %FEAT%

Action #3
Actiontype 5: Format value
Field ______: TITLE
Formatstring: %TITLE% %TITLE2%

Action #4
Actiontype 9: Remove fields
Fields to remove (semicolon separated): FEAT;TITLE2

End Action Group Test_2012#20120524.clark1 (4 Actions)


From
Title: SongX (ft Jane Blow) [INSTRUMENTAL]
Artist: Joe Blow

To
Title: SongX [INSTRUMENTAL]
Artist: Joe Blow ft Jane Blow

DD.20120524.2211.CEST


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
clark1
post May 24 2012, 21:24
Post #5


Member


Group: Members
Posts: 4
Joined: 24-May 12
Member No.: 16489
Mp3tag Version: 2.51



@DetlevD

I have searched the entire forum, and my answer has not been answered in its version. Your suggestion didn't work for my specific case.
Go to the top of the page
 
+Quote Post
pone
post May 24 2012, 21:37
Post #6


Member


Group: Full Members
Posts: 1572
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



ZITAT(clark1 @ May 24 2012, 21:43) *
Title: SongX (ft Jane Blow) [INSTRUMENTAL]


You didn't mention the "[INSTRUMENTAL]" part in your first request! That is of course an essential fact to know to get a sollution.

Are there any other formating variation?
It is essential to know if it's always "ft" or also "ft.", "feat.", "featuring", ..., if the featuring part is alway in round parentheses, if the song version part is alway in square brackets, if the two parts are always in the same order, and so on.
Do you deal with files which have been formated to after a specific rule before or are you dealing with files from mixed sources with all kind of spelling an formating variations.

Detlev's solution should help you for the example you have given. If you are new to this program, it may be easier to split the various functions into different actions as he has done. On the other side, if you put it all in one line with the functions nested into each other, you can use the preview function of the tag-tag converter while you are writing the first line for the guess values action.


EDIT:
I'm pretty sure Detlev's suggestion works as he described it. He used exactly your example.

This post has been edited by pone: May 24 2012, 21:43
Go to the top of the page
 
+Quote Post
DetlevD
post May 24 2012, 21:37
Post #7


Member


Group: Full Members
Posts: 4130
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.54



QUOTE (clark1 @ May 24 2012, 22:24) *
@DetlevD
I have searched the entire forum, and my answer has not been answered in its version. Your suggestion didn't work for my specific case.

Hmm your question has been never answered before? I can't believe it.
Hm, it does not work? I can't believe it, because it really works with your example strings.
And ... last but not least ... isn't it really simple?

DD.20120524.2238.CEST


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
pone
post May 24 2012, 22:53
Post #8


Member


Group: Full Members
Posts: 1572
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.50



@clark1:

Your luck, I just stumbled over a few files in my own collection which were exactly formated the same way. So I made myself a new action to solve this:

Action #1
Actiontype 7: Import tag fields (guess values)
Source format __: %artist% $regexp(%title%,'(.+) [\(\[]?(?:featuring|feat|ft)\.? ([^\)\]]+)[\)\]]* [\(\[](.+?)[\)\]]',feat. $2 +++ $1 ($3),1)
Guessing pattern: %artist% +++ %title%

Thanks Detlev for your MTA to BB Code tool. This is the first time I'm using it.

This post has been edited by pone: May 24 2012, 22:57
Go to the top of the page
 
+Quote Post
clark1
post Jun 2 2012, 03:32
Post #9


Member


Group: Members
Posts: 4
Joined: 24-May 12
Member No.: 16489
Mp3tag Version: 2.51



Thanks very much.

It now mostly works. There's an added issue that I'm working on, but I'll let it go for now.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th June 2013 - 22:32