# Delete " - " at end of field

**URL:** https://community.mp3tag.de/t/delete-at-end-of-field/12144
**Category:** Support
**Created:** [June 12, 2011, 4:50pm UTC](https://community.mp3tag.de/t/delete-at-end-of-field/12144 "2011-06-12T16:50:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KaraokeK](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@KaraokeK](https://community.mp3tag.de/u/KaraokeK)
#### Post date: [June 12, 2011, 4:50pm UTC](https://community.mp3tag.de/t/delete-at-end-of-field/12144/1 "2011-06-12T16:50:00Z")

</div>

In the process of renaming lots of mp3. Got lots of actions going on. For some reason in some fields I am left with a hyphen - at the end of the field. So I need an action that will globally remove - if the - is the last letter of the field.  
Hope you can understand this problem.  
Thanks.

---

<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: [June 12, 2011, 5:18pm UTC](https://community.mp3tag.de/t/delete-at-end-of-field/12144/2 "2011-06-12T17:18:21Z")

</div>

> [@KaraokeK](#):
>
> ...I am left with a hyphen - at the end of the field....

Create an action of the type "Replace with regular expression".  
(select the field - I wouldn't do it globally but specifically for artist, album, title)  
Search string: (.\*)-$  
Replace string: $1

It could be that you end up with a trailing blank - then modify the search string like this:  
Search string: (.\*) -$

---

<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:23pm UTC](https://community.mp3tag.de/t/delete-at-end-of-field/12144/3 "2026-02-09T12:23:09Z")

</div>


