# Removing Text before the -

**URL:** https://community.mp3tag.de/t/removing-text-before-the/60274
**Category:** Support
**Created:** [March 5, 2023, 12:26pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274 "2023-03-05T12:26:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Winston1979](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/838e76/32.png) [@Winston1979](https://community.mp3tag.de/u/Winston1979)
#### Post date: [March 5, 2023, 12:26pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/1 "2023-03-05T12:26:04Z")

</div>

Hi all,

Is there a way to remove the text along with the - that comes with it, in a query I was given information on how to copy all the text to the correct field and have managed to work out how to remove just the text without the numbers too.

I.e

 ![image](https://community.mp3tag.de/uploads/default/original/2X/f/ffded2f26435fd904ff7826ce3ac5886cc256cff.png)

tia

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 5, 2023, 12:39pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/2 "2023-03-05T12:39:46Z")

</div>

Please show us an example for your filename  
`01 Bodybangers - Famous Mondo Remix.mp3`

Do you want to get  
`Bodybangers (Famous Mondo Remix)`  
as TITLE?

Or do you want  
`Bodybangers`  
as ARTIST?

In a first step one solution would be to fill the tags with Convert Filename -\> Tag:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/5/5096a2d0eaaeffe4de7e05db895b8c1d414871c7.png)  
with the Format String:  
`%track% %artist% - %title%`

Then you need to tell us, what exactly do want to see in which tag as final result.

---

<div class="post-metadata">

### Author: ![Winston1979](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/838e76/32.png) [@Winston1979](https://community.mp3tag.de/u/Winston1979)
#### Post date: [March 5, 2023, 12:52pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/3 "2023-03-05T12:52:19Z")

</div>

> [@LyricsLover](#):
>
> 01 Bodybangers - Famous Mondo Remix.mp3

 ![image](https://community.mp3tag.de/uploads/default/original/2X/f/fd98565d4afde34ca4bff3f56e3a2e994055d017.png)

Sorry ignore the body bangers, that seems to be missing the track name, this is how I would like it to eventually look.

Cheers

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 5, 2023, 12:54pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/4 "2023-03-05T12:54:05Z")

</div>

We still don't see what tag name you want to fill.

Please show us the column headers or name it as FILENAME, TITLE, ARTIST, ALBUMARTIST or whatever the column content should be.

---

<div class="post-metadata">

### Author: ![Winston1979](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/838e76/32.png) [@Winston1979](https://community.mp3tag.de/u/Winston1979)
#### Post date: [March 5, 2023, 1:02pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/5 "2023-03-05T13:02:55Z")

</div>

Sorry this must be like me trying to teach my nan something on a computer.  
What I'm trying to acheive is turning this

 ![image](https://community.mp3tag.de/uploads/default/original/2X/5/51327b07ea7620eb373d72eafc629244f733b054.png)  
to this  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/3/3c0dc914a4cf02014280dd74fdcbc0303caa0e93.png)

Your code above moves the artist name to the correct box and someone else showed me a way of duplicating the artist to the album artist, just not how to remove the artist from the filename.

In a nutshell I'm trying to create the same type of format that we used to get when ripping cds.

Thanks again for your help

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 5, 2023, 1:12pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/6 "2023-03-05T13:12:39Z")

</div>

This example is much better, thank you.

**Step #1**  
To get from  
`01 Bossman - Bongo Eyes 2.mp3`  
to  
TRACK: `01`  
TITLE: `Bongo Eyes 2`  
ARTIST: `Bossman`

you can use the same Convert Filename -\> Tag (ALT+2) as I wrote above  
with the Format String:  
`%track% %artist% - %title%`

* * *

**Step #2**  
To copy the content from ARTIST to ALBUMARTIST you can use  
Convert Tag -\> Tag (ALT+5) and  
Field: `ALBUMARTIST`  
Format string: `%ARTIST%`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/1/1d89cf481d1fd85d9b3ae4ac988ac28bbdf3fb60.png)

* * *

**Step #3**  
To get the new filename with the parts TRACK and TITLE  
you can use the Convert Tag -\> Filename (ALT+1) with the  
Format string: `%TRACK% %TITLE%`

![image](https://community.mp3tag.de/uploads/default/original/2X/8/8ab1afc84af2584a06523b5d03ae40b41a9b8c02.png)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 5, 2023, 1:21pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/7 "2023-03-05T13:21:15Z")

</div>

> [@Winston1979](#):
>
> and someone else showed me a way of duplicating the artist to the album artist

There are at least two ways to accomplish this:  
**a)** You can use the **[Convert](https://docs.mp3tag.de/converters/)** menu in the GUI. The advantage is the immediately view of the preview result before you apply it to the selected songs  
or  
**b)** You can use an [Action](https://docs.mp3tag.de/actions/) as ohrenkino showed you in [his answer](https://community.mp3tag.de/t/copying-fields-and-adding-them-to-blank-fields/60215/8)

---

<div class="post-metadata">

### Author: ![Winston1979](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/838e76/32.png) [@Winston1979](https://community.mp3tag.de/u/Winston1979)
#### Post date: [March 5, 2023, 5:25pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/8 "2023-03-05T17:25:57Z")

</div>

> [@LyricsLover](#):
>
> ohrenkino showed y

Thank you all for your help, I guess if you if you really put some time into this software you can do anything.

---

<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: [April 4, 2023, 5:26pm UTC](https://community.mp3tag.de/t/removing-text-before-the/60274/9 "2023-04-04T17:26:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
