# Rename kexp tracks with artist-title / artist

**URL:** https://community.mp3tag.de/t/rename-kexp-tracks-with-artist-title-artist/54282
**Category:** Support
**Created:** [September 7, 2021, 6:09am UTC](https://community.mp3tag.de/t/rename-kexp-tracks-with-artist-title-artist/54282 "2021-09-07T06:09:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kiwipaul](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/5f8ce5/32.png) [@kiwipaul](https://community.mp3tag.de/u/kiwipaul)
#### Post date: [September 7, 2021, 6:09am UTC](https://community.mp3tag.de/t/rename-kexp-tracks-with-artist-title-artist/54282/1 "2021-09-07T06:09:40Z")

</div>

Greetings. I not sure if I need to use regex or $replace(string,from,to) ...

Anyway, KEXP songs of the day have track metadata as follows:

'artist - title' as the title; and just  
'artist' as artist.

I want to delete the 'artist -' references from the title .

Can anyone assist?

Kind regards.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [September 7, 2021, 6:32am UTC](https://community.mp3tag.de/t/rename-kexp-tracks-with-artist-title-artist/54282/2 "2021-09-07T06:32:31Z")

</div>

see e.g. here:

> [@RegEx Remove from FileName](https://community.mp3tag.de/t/regex-remove-from-filename/5265/):
>
> I wish to remove xyz or 256 and everything AFTER it in a filename. Can someone help me? Thanks, David

Preferred way: fill tags, then write new filename with tag field contents.

---

<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: [September 7, 2021, 6:42am UTC](https://community.mp3tag.de/t/rename-kexp-tracks-with-artist-title-artist/54282/3 "2021-09-07T06:42:46Z")

</div>

> [@kiwipaul](#):
>
> 'artist - title' as the title; and just  
> 'artist' as artist.
> 
> I want to delete the 'artist -' references from the title .

Let's assume you have a song with the title `ABBA - Waterloo` and `ABBA` as artist.  
You could use the Convert Tag -\> Tag (ALT + 5 ) and this format string:  
`$repl(%TITLE%,%artist% - ,)`

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

This only works, if your existing content in the artist tag is exactly the same as the content before the `-` in the title.

If you really want to rename your track (= the filename) please follow @ohrenkino's advice.

---

<div class="post-metadata">

### Author: ![kiwipaul](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/5f8ce5/32.png) [@kiwipaul](https://community.mp3tag.de/u/kiwipaul)
#### Post date: [September 7, 2021, 8:52am UTC](https://community.mp3tag.de/t/rename-kexp-tracks-with-artist-title-artist/54282/4 "2021-09-07T08:52:01Z")

</div>

Perfect and much appreciated.

Thank you.

---

<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: [October 7, 2021, 8:52am UTC](https://community.mp3tag.de/t/rename-kexp-tracks-with-artist-title-artist/54282/5 "2021-10-07T08:52:16Z")

</div>

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