# Can someone help me remove this string

**URL:** https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199
**Category:** Support
**Created:** [October 24, 2009, 9:35pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199 "2009-10-24T21:35:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![xj32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xj32](https://community.mp3tag.de/u/xj32)
#### Post date: [October 24, 2009, 9:35pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/1 "2009-10-24T21:35:49Z")

</div>

I am re-tagging about 500 live shows and have to import the track names from text files.

The problem is most titles don't simply have a number like 01 - Song Name, instead they have the disc number and track number listed as:

d1t01 - Song Name  
d2t02 - Song Name

and so on.

Can some one help me write a string to remove the d1t01 - information? I have been messing with it all night, but I do not understand the programing language.

Thanks,

XJ

---

<div class="post-metadata">

### Author: ![ci3nt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/5daacb/32.png) [@ci3nt](https://community.mp3tag.de/u/ci3nt)
#### Post date: [October 24, 2009, 10:46pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/2 "2009-10-24T22:46:45Z")

</div>

Hello,

I hope, I have understand, what you meant.  
If you want to keep the track and discnumber you can take this string:  
d%discnumber%t%track% - %title%

Otherwise you can take thist string:  
%dummy% - %title%

regards,  
gnor

---

<div class="post-metadata">

### Author: ![xj32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xj32](https://community.mp3tag.de/u/xj32)
#### Post date: [October 24, 2009, 11:12pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/3 "2009-10-24T23:12:43Z")

</div>

What I want to do is:

Instead of having my titles read:

d1t01 - Might As Well  
d1t02 - Ramble On Rose  
d1t03 - Cumberland Blues  
d2t01 - Morning Due  
d3t06 - Looks Like Rain

I want to run an action on all of them at once that changes them to:

Might As Well  
Ramble On Rose  
Cumberland Blues  
Morning Due  
Looks Like Rain

Just like when you remove a number and a dash such as "01 - Song Title" and change it to "Song Title" by running the action : ^\s\*\d+\s\*-\s\*

I just cannot figure out what to add to that string to get rid of the letters D & T in my titles along with the numbers and the hyphen.

Does that make sense?

XJ

---

<div class="post-metadata">

### Author: ![xj32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xj32](https://community.mp3tag.de/u/xj32)
#### Post date: [October 25, 2009, 2:51am UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/4 "2009-10-25T02:51:33Z")

</div>

For the record I tried gnor's suggestion and they did not work either.

Thanks though.

Anyone?

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [October 25, 2009, 6:58am UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/5 "2009-10-25T06:58:09Z")

</div>

> [@xj32](#):
>
> For the record I tried gnor's suggestion and they did not work either. ...

For the records ...  
... I've tried both of gnor's suggestions and they work for me on your example strings.

So do you be able to describe what action or processing did you have tried?

DD.20091025.0857.CET

---

<div class="post-metadata">

### Author: ![xj32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xj32](https://community.mp3tag.de/u/xj32)
#### Post date: [October 25, 2009, 10:33am UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/6 "2009-10-25T10:33:37Z")

</div>

> [@DetlevD](#):
>
> For the records ...  
> ... I've tried both of gnor's suggestions and they work for me on your example strings.
> 
> So do you be able to describe what action or processing did you have tried?
> 
> DD.20091025.0857.CET

I tried :

%dummy% - %title%

And it did not remove the d1t01 - part of the file name...Unless I did not put it i the right place.

I am sorry for being such a newb here, but I do not understand any of this code, even after looking through this site and the wikipida page on this programming language.

I need some one to be specific as possible. Sorry

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [October 25, 2009, 11:58am UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/7 "2009-10-25T11:58:09Z")

</div>

> [@xj32](#):
>
> ... I am sorry for being such a newb here, but I do not understand any of this code, even after looking through this site and the wikipida page on this programming language. I need some one to be specific as possible. Sorry

Ok, let's try step by step.

Step 1. Claryfying the situation.  
How do you "import the track names from text files"?

DD.20091025.1358.CET

---

<div class="post-metadata">

### Author: ![xj32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xj32](https://community.mp3tag.de/u/xj32)
#### Post date: [October 25, 2009, 12:27pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/8 "2009-10-25T12:27:19Z")

</div>

> [@DetlevD](#):
>
> Ok, let's try step by step.
> 
> Step 1. Claryfying the situation.  
> How do you "import the track names from text files"?
> 
> DD.20091025.1358.CET

I select all the songs I want to add track titles to and I use the text import feature, and then simply import my track titles.

The track titles in the text file read as I mentioned above: "d1t01 - Song Name" and so on. So this then becomes my track titles for my selected tracks in mp3tag.

All this works great, I am just trying to find if there is a way in mp3tag to remove the disc / track headers in the program, before that I used to take them out 1 by 1 in the text file and that is taking way too long.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [October 25, 2009, 7:18pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/9 "2009-10-25T19:18:18Z")

</div>

> [@xj32](#):
>
> I select all the songs I want to add track titles to and I use the text import feature, and then simply import my track titles.  
> The track titles in the text file read as I mentioned above: "d1t01 - Song Name" and so on. So this then becomes my track titles for my selected tracks in mp3tag. All this works great, I am just trying to find if there is a way in mp3tag to remove the disc / track headers in the program, before that I used to take them out 1 by 1 in the text file and that is taking way too long.

Now the situation is: TITLE tag field is set to a string like "d1t01 - Song Name".

So the TITLE tag field contains three informations:

- the disc number
- the track number
- the title string

For my part I would not like to loose the additional numerical informations, therefore I would do ...

Step 2. Split string from TITLE tag field into three parts and fill tag fields TITLE, TRACK, DISCNUMBER with appropriately content.

Create an action group  
Begin Actionsgroup **Split\_TITLE**  
Action #1  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format:_ **%TITLE%**  
_Guessing pattern:_ **d%DISCNUMBER%t%TRACK%÷-÷%TITLE%**  
_Note: Replace each special ÷ character with one space character._  
End Actionsgroup **Split\_TITLE** (1 Action)

Run this action against the related tracks.  
Afterwards the original problem should be solved.

Annotation:  
If you make the guessing tag field splitting part of the import process, then you do not need to do a second step via action as described before.  
Using "Converter textfile - tag fields" you can set the format string right away as you need it.  
The format string "d%DISCNUMBER%t%TRACK% - %TITLE%" (without the quote characters) will split the string line from the textfile into three tagfields.  
If you do not need track and discnumber you can code the format string "%DUMMY% - %TITLE%" and it will set only the tag field TITLE.

DD.20091025.2115.CET

---

<div class="post-metadata">

### Author: ![xj32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xj32](https://community.mp3tag.de/u/xj32)
#### Post date: [October 26, 2009, 7:07pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/10 "2009-10-26T19:07:14Z")

</div>

Hey this worked when importing from my original text file.

I get it now...I was trying to use the %Dummy%...string as an action group, not during the import.

Thats my problem...I am not sure where and when to type what.

Thanks

XJ

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/can-someone-help-me-remove-this-string/9199/11 "2026-02-09T12:21:53Z")

</div>


