# Remove All Characters After ' - '

**URL:** <https://community.mp3tag.de/t/remove-all-characters-after/58432>\
**Category:** Support\
**Created:** [September 6, 2022, 2:20pm UTC](https://community.mp3tag.de/t/remove-all-characters-after/58432 "2022-09-06T14:20:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JesseJ32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@JesseJ32](https://community.mp3tag.de/u/JesseJ32)\
**Post date:** [September 6, 2022, 2:20pm UTC](https://community.mp3tag.de/t/remove-all-characters-after/58432/1 "2022-09-06T14:20:01Z")

</div>

Hello,

Looking to find the correct function to remove ALL characters after the " - " character. I extracted a few MP3s from a source and the Artist Name and Track Title are placed into the Title field.

All results seem to have come over like this

Artist - Title

I would like to find the function to isolate the 'Artist' and place that in the Artist field, then I will need to find a way to isolate the Title and place it in the 'Title' field.

Any help would be much appreciated! Thank you in advance!

---

<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 6, 2022, 2:25pm UTC](https://community.mp3tag.de/t/remove-all-characters-after/58432/2 "2022-09-06T14:25:11Z")

</div>

> [@JesseJ32](#):
>
> All results seem to have come over like this
> 
> Artist - Title

Try an action of the type "Guess value" (import tag fields)  
Source: %title%  
Target string: %artist% - %title%

That should split the contents of TITLE into TITLE and ARTIST.

---

<div class="post-metadata">

**Author:** ![JesseJ32](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@JesseJ32](https://community.mp3tag.de/u/JesseJ32)\
**Post date:** [September 6, 2022, 2:40pm UTC](https://community.mp3tag.de/t/remove-all-characters-after/58432/3 "2022-09-06T14:40:32Z")

</div>

Wow - that worked perfectly! Thank you very much for the quick response!

---

<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 6, 2022, 2:40pm UTC](https://community.mp3tag.de/t/remove-all-characters-after/58432/4 "2022-10-06T14:40:56Z")

</div>

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