# Zeichen entfernen vor und nach Bindestrich

**URL:** <https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927>\
**Category:** Allgemein\
**Created:** [October 30, 2022, 7:50pm UTC](https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927 "2022-10-30T19:50:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Earlenrico](https://community.mp3tag.de/user_avatar/community.mp3tag.de/earlenrico/32/21144_2.png) [@Earlenrico](https://community.mp3tag.de/u/Earlenrico)\
**Post date:** [October 30, 2022, 7:50pm UTC](https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927/1 "2022-10-30T19:50:12Z")

</div>

Hallo zusammen,

ich habe bei dem Album

Trance Voices Vol. 23 - CD 1  
Trance Voices Vol. 23 - CD 2

wie komme ich das Leerzeichen vor dem Bindestrich und alles nach dem Bindestrich entfernt?

So sollte es aussehen.

Trance Voices Vol. 23

Ich habe es mit

![Mp3tag](https://community.mp3tag.de/uploads/default/original/2X/5/54e148fbd99e12f367d22fb6dad60332900c9503.png)

probiert. Damit funktioniert es aber nicht.

Vielen Dank schon im Voraus.

Gruß Enrico

---

<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:** [October 30, 2022, 7:54pm UTC](https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927/2 "2022-10-30T19:54:51Z")

</div>

Ich frage mich, woher du die Syntax für reguläre Ausdrücke mit den Scripting Funktionen hast.

Probier eine Aktion vom Typ "Tag-Felder importieren"  
Quelle: %album%  
Ziel-String: %album% - %dummy%

---

<div class="post-metadata">

**Author:** ![Earlenrico](https://community.mp3tag.de/user_avatar/community.mp3tag.de/earlenrico/32/21144_2.png) [@Earlenrico](https://community.mp3tag.de/u/Earlenrico)\
**Post date:** [October 30, 2022, 8:03pm UTC](https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927/3 "2022-10-30T20:03:37Z")

</div>

@ohrenkino

Ich habe es von der Seite [Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting/)

---

<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:** [October 30, 2022, 8:07pm UTC](https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927/4 "2022-10-30T20:07:42Z")

</div>

Ich glaube kaum, dass da steht, dass du für reguläre Ausdrücke die Scripting Befehle nehmen sollst. Scripting Befehle können in Formatstrings vorkommen.  
Für reguläre Ausdrücke solltest du ein Muster definieren, beschrieben wie hier:

> **[Regular Expressions – Mp3tag Documentation](https://docs.mp3tag.de/regex/)**
>
> Documentation on support for regular expressions in Mp3tag. Mp3tag is the universal Tag Editor.

Das alles sollte nur erklären, warum du mit deinem Versuch kein gewünschtes Ergebnis bekommen hast.

Was tut sich denn mit der Aktion "Tag-Felder importieren"?

---

<div class="post-metadata">

**Author:** ![Earlenrico](https://community.mp3tag.de/user_avatar/community.mp3tag.de/earlenrico/32/21144_2.png) [@Earlenrico](https://community.mp3tag.de/u/Earlenrico)\
**Post date:** [October 30, 2022, 8:12pm UTC](https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927/5 "2022-10-30T20:12:01Z")

</div>

> [@ohrenkino](#):
>
> Was tut sich denn mit der Aktion "Tag-Felder importieren"?

Es hat funktioniert, Danke dir

---

<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:** [November 29, 2022, 8:12pm UTC](https://community.mp3tag.de/t/zeichen-entfernen-vor-und-nach-bindestrich/58927/6 "2022-11-29T20:12:12Z")

</div>

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