# Extracting a part of string from Title of Song and rename title

**URL:** <https://community.mp3tag.de/t/extracting-a-part-of-string-from-title-of-song-and-rename-title/17724>\
**Category:** Support\
**Created:** [March 6, 2016, 4:52pm UTC](https://community.mp3tag.de/t/extracting-a-part-of-string-from-title-of-song-and-rename-title/17724 "2016-03-06T16:52:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asmuzik](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/0ea827/32.png) [@asmuzik](https://community.mp3tag.de/u/asmuzik)\
**Post date:** [March 6, 2016, 4:52pm UTC](https://community.mp3tag.de/t/extracting-a-part-of-string-from-title-of-song-and-rename-title/17724/1 "2016-03-06T16:52:15Z")

</div>

Hello friends,  
Here is situation I need to deal with:

Suppose the title of a song is:  
abc - xyz  
Now I need to extract 'abc' part of title and rename title as only 'abc'.

that is;  
**Old Title** : abc - xyz  
**New Title** : abc

In other words I need to delete the ' - xyz' part from old title.

And **Please note** that 'abc' part of song title is of variable length.

It would be of great relief if someone could help me to this task.

---

<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:** [March 6, 2016, 5:43pm UTC](https://community.mp3tag.de/t/extracting-a-part-of-string-from-title-of-song-and-rename-title/17724/2 "2016-03-06T17:43:15Z")

</div>

Create an action of the type "Guess value" for source %title%  
Guessing pattern: %title% - %dummy%

---

<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:26pm UTC](https://community.mp3tag.de/t/extracting-a-part-of-string-from-title-of-song-and-rename-title/17724/3 "2026-02-09T12:26:08Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


