# Action: Delete strings - How to?

**URL:** <https://community.mp3tag.de/t/action-delete-strings-how-to/44602>\
**Category:** Support\
**Created:** [February 20, 2019, 4:50pm UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602 "2019-02-20T16:50:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JOOP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@JOOP](https://community.mp3tag.de/u/JOOP)\
**Post date:** [February 20, 2019, 4:50pm UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/1 "2019-02-20T16:50:46Z")

</div>

Hello there,

First of all, thank you for powerful tool !

Unfortunately, I have to unwind a tag which I have composed with the help of MP3Tag. The field currently contains the expression "composer - title" (title means Opus in this case). Therefore, I am looking for the definition of an action which deletes all strings up to the last blank before 'title', in this example to delete "composer - ". The composer represents the name, therefore the number of strings to be deleted will vary.

How can I manage to get that working ? Please note that I am not familiar with defining actions.

Thank you for your help in advance !

Regards,  
Jochen

---

<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:** [February 20, 2019, 6:30pm UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/2 "2019-02-20T18:30:45Z")

</div>

Try an action of the type "Guess value"  
Source: %title%  
Target: %dummy% - %title%  
or  
Target: %composer% - %title%

---

<div class="post-metadata">

**Author:** ![JOOP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@JOOP](https://community.mp3tag.de/u/JOOP)\
**Post date:** [February 21, 2019, 8:23am UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/3 "2019-02-21T08:23:32Z")

</div>

Thank you.

However, this does not seem to work, no strings are being deleted.  
Maybe I have not explained my objective clearly and it would be better to try an alternative, by copying from Tag 1 to Tag 2.

Tag1: "title" [Consists of "Part1 - Part2"]. Part 1 is the name of the composer and has a flexible number of strings. " - " is always fixed and in front of Part 2.

If I copy from Tag1 to Tag2 and as a result Tag 2 should only show "Part2", what Formatstring do I have to enter into field Tag2 ?

Regards,  
Jochen

---

<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:** [February 21, 2019, 8:34am UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/4 "2019-02-21T08:34:49Z")

</div>

To copy the contents of one field to another, use an action of the type "Format value" for the target field (what should "tag2" be?) with the  
Format string: %source field%

You then would have to delete the redundant information in the target field e.g. with an action of the type "Guess value" as described above.  
If that does not work, then I suggest that you supply a real example.

---

<div class="post-metadata">

**Author:** ![JOOP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@JOOP](https://community.mp3tag.de/u/JOOP)\
**Post date:** [February 21, 2019, 9:36am UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/5 "2019-02-21T09:36:36Z")

</div>

Thank you.

May I suggest that I directly provide the concrete example you have requested:  
The content of the tag is

"Berlioz - Réverie Et Caprice, Op. 8".

I need to delete "Berlioz - "  
Part2: "Réverie Et Caprice, Op. 8" should remain. Please note that the number of strings of each 'composer', in the example 'Berlioz', may vary.

Thanks for your help.  
Jochen

---

<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:** [February 21, 2019, 9:58am UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/6 "2019-02-21T09:58:52Z")

</div>

> [@JOOP](#):
>
> Berlioz - Réverie Et Caprice, Op. 8

Use an action of the type "Guess value"  
Source: %title%  
Target: %dummy% - %title%

This deletes anything in front of " - ". It does not delete if there are no leading or trailing blanks for the hyphen.

---

<div class="post-metadata">

**Author:** ![JOOP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@JOOP](https://community.mp3tag.de/u/JOOP)\
**Post date:** [February 21, 2019, 11:26am UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/7 "2019-02-21T11:26:53Z")

</div>

Unfortunately, this does not delete anything.  
Honestly, I am also struggling with

> an action of the type "Guess value"

I have defined it on my own according to your instruction, because I have nothing found like this in menu "Aktionen" (V2.93). Am I wrong here ?

Thanks for your patience and support.

---

<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:** [February 21, 2019, 1:01pm UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/8 "2019-02-21T13:01:39Z")

</div>

"Guess value" is "Tag-Feld importieren" in the German UI.

---

<div class="post-metadata">

**Author:** ![JOOP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@JOOP](https://community.mp3tag.de/u/JOOP)\
**Post date:** [February 21, 2019, 3:56pm UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/9 "2019-02-21T15:56:38Z")

</div>

Now I have got it, thank you, ohrenkino.

**Manual:**  
Menü Aktionen / Aktion (Quick) / Tag - Feld importieren

Quellformat: %contentgroup% [= Tag to be modified]  
Formatstring: %dummy% - %contentgroup%

Result is the second part of the original expression of %contentgroup%. And it works !

Thank you for your support 👍!  
Jochen

---

<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:** [March 23, 2019, 3:56pm UTC](https://community.mp3tag.de/t/action-delete-strings-how-to/44602/10 "2019-03-23T15:56:42Z")

</div>

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