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
> Remove THE from start of Artist field
sobeitjedi
post Mar 12 2012, 17:06
Post #1


Member


Group: Full Members
Posts: 14
Joined: 9-November 11
Member No.: 15559
Mp3tag Version: 2.49



Hi.

How can I remove the word 'The' from the artist field if the artist begins with The, eg ...

The Smiths = Smiths
The Strokes = Strokes

But keep where 'The' appears in the artist name, eg

Adam & The Ants = Adam & The Ants
Go to the top of the page
 
+Quote Post
pone
post Mar 12 2012, 19:19
Post #2


Member


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



ZITAT(sobeitjedi @ Mar 12 2012, 17:06) *
Hi.

How can I remove the word 'The' from the artist field if the artist begins with The, eg ...

The Smiths = Smiths
The Strokes = Strokes

But keep where 'The' appears in the artist name, eg

Adam & The Ants = Adam & The Ants


Use the new Tag-Tag Converter or Action: Format Value
Field: ARTIST
Formatstring: $regexp(%artist%,^The ,)
Go to the top of the page
 
+Quote Post
sobeitjedi
post Mar 13 2012, 14:12
Post #3


Member


Group: Full Members
Posts: 14
Joined: 9-November 11
Member No.: 15559
Mp3tag Version: 2.49



QUOTE (pone @ Mar 12 2012, 19:19) *
Use the new Tag-Tag Converter or Action: Format Value
Field: ARTIST
Formatstring: $regexp(%artist%,^The ,)


Thanks - while that does work, it's putting an extra space at the end of the artist name. For example ...

1. Madonna - Lucky Star

bcomes

1. Madonna - Lucky Star (an extra space after Madonna)
Go to the top of the page
 
+Quote Post
pone
post Mar 13 2012, 14:45
Post #4


Member


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



ZITAT(sobeitjedi @ Mar 13 2012, 14:12) *
Thanks - while that does work, it's putting an extra space at the end of the artist name. For example ...


No, it should not.
If so, maybe you had the extra space at the end of the formatstring.
Or it was there before.
Go to the top of the page
 
+Quote Post
sobeitjedi
post Mar 13 2012, 15:21
Post #5


Member


Group: Full Members
Posts: 14
Joined: 9-November 11
Member No.: 15559
Mp3tag Version: 2.49



QUOTE (pone @ Mar 13 2012, 14:45) *
No, it should not.
If so, maybe you had the extra space at the end of the formatstring.
Or it was there before.


Looks like when I copied your string in, somehow an extra space got tagged on the end. Unfortunately, I've just applied this action to a load of tracks. Is there a way I can remove the trailing spaces from the end of Artist? Otherwise I have to go through them all manually to remove the additional spaces.

This post has been edited by sobeitjedi: Mar 13 2012, 15:21
Go to the top of the page
 
+Quote Post
pone
post Mar 13 2012, 17:12
Post #6


Member


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



ZITAT(sobeitjedi @ Mar 13 2012, 15:21) *
Looks like when I copied your string in, somehow an extra space got tagged on the end. Unfortunately, I've just applied this action to a load of tracks. Is there a way I can remove the trailing spaces from the end of Artist? Otherwise I have to go through them all manually to remove the additional spaces.


http://forums.mp3tag.de/index.php?showtopic=980#entry4117


or, in your case:

Converter: Tag-Tag or Action: Format Value
Field: ARTIST
Formatstring: $regexp(%artist%,\s+$,)
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: 16th April 2014 - 16:59