# Trim with regular expression based on delimiter?

**URL:** <https://community.mp3tag.de/t/trim-with-regular-expression-based-on-delimiter/9631>\
**Category:** Support\
**Created:** [January 3, 2010, 8:04pm UTC](https://community.mp3tag.de/t/trim-with-regular-expression-based-on-delimiter/9631 "2010-01-03T20:04:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnhardyiv](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnhardyiv/32/258_2.png) [@johnhardyiv](https://community.mp3tag.de/u/johnhardyiv)\
**Post date:** [January 3, 2010, 8:04pm UTC](https://community.mp3tag.de/t/trim-with-regular-expression-based-on-delimiter/9631/1 "2010-01-03T20:04:53Z")

</div>

Hi, trying to tim a collection of song titles that have duplicate _different_ information after a front slash as seen below:

Breaking Ties [A&b Analogue Haven Mix]/A&b Analogue Haven Mix

Want to trim the '/A&b Analogue Haven Mix' off, anything including and after the front slash.

Can't quite get the regular expression to use from the FAQ thread on this and trailing spaces, any help? Thanks -

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [February 16, 2015, 11:38am UTC](https://community.mp3tag.de/t/trim-with-regular-expression-based-on-delimiter/9631/2 "2015-02-16T11:38:13Z")

</div>

> [@johniv](#):
>
> Hi, trying to tim a collection of song titles that have duplicate _different_ information after a front slash as seen below:  
> Breaking Ties [A&b Analogue Haven Mix]/A&b Analogue Haven Mix  
> Want to trim the '/A&b Analogue Haven Mix' off, anything including and after the front slash. ...

**Action: Format value Field : TITLE\_NEW Formatstring: $regexp(%TITLE%,'^(.+?)\[(.+?)\]/\2$','$1[$2]') From : Breaking Ties [A&b Analogue Haven Mix]/A&b Analogue Haven Mix To : Breaking Ties [A&b Analogue Haven Mix]**

DD.20150216.1338.CET

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [February 16, 2015, 1:09pm UTC](https://community.mp3tag.de/t/trim-with-regular-expression-based-on-delimiter/9631/3 "2015-02-16T13:09:34Z")

</div>

Action Type: Guess Values  
Source format: %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:22pm UTC](https://community.mp3tag.de/t/trim-with-regular-expression-based-on-delimiter/9631/4 "2026-02-09T12:22:03Z")

</div>

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


