# Remove repetition from tag

**URL:** https://community.mp3tag.de/t/remove-repetition-from-tag/45735
**Category:** Support
**Created:** [June 22, 2019, 6:27am UTC](https://community.mp3tag.de/t/remove-repetition-from-tag/45735 "2019-06-22T06:27:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![verypsb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/65b543/32.png) [@verypsb](https://community.mp3tag.de/u/verypsb)
#### Post date: [June 22, 2019, 6:27am UTC](https://community.mp3tag.de/t/remove-repetition-from-tag/45735/1 "2019-06-22T06:27:41Z")

</div>

Hi,

I have some tracks I bought, where the title contains some repeated parts, the remix is mentioned twice. Once with square brackets, once without square brackets. Is there some smart way to remove the repetition?

"In My Arms [Love To Infinity Stratomaster Mix] Love To Infinity Stratomaster Mix"  
"In My Arms [Crumbling Down Mix] Crumbling Down Mix"

Hope someone can help me.

Thanks!

Best regards,  
Dennis.

---

<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 22, 2019, 8:44am UTC](https://community.mp3tag.de/t/remove-repetition-from-tag/45735/2 "2019-06-22T08:44:41Z")

</div>

I found a thread on repeated artists:

> [@Double Artist Removal](https://community.mp3tag.de/t/double-artist-removal/12604):
>
> Not that great at mp3 tag. I have a lot of files that are formated as such %artist%/%artist% and would like them to be only %artist% E.g. Chicago/Chicago changed to Chicago How would i do this? Thanks

And this regular expression  
`$regexp($replace(In My Arms [Crumbling Down Mix] Crumbling Down Mix,[,,],),'(.+?)/\1','$1')`  
results in  
`"In My Arms Crumbling Down Mix"`  
which has actrually 2 blanks in front of the "crumbling". So it should be easy to replace those with a [if required. The] can be added in the regular expression already as text constant.

---

<div class="post-metadata">

### Author: ![verypsb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/65b543/32.png) [@verypsb](https://community.mp3tag.de/u/verypsb)
#### Post date: [June 22, 2019, 1:36pm UTC](https://community.mp3tag.de/t/remove-repetition-from-tag/45735/3 "2019-06-22T13:36:46Z")

</div>

Thanks for your help. I think I should be looking for some regular expression that removes everything after "]". I think it would look something like this: ].\*$ or ].+  
How can I use this regular expression in MP3Tag?

---

<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 22, 2019, 3:32pm UTC](https://community.mp3tag.de/t/remove-repetition-from-tag/45735/4 "2019-06-22T15:32:42Z")

</div>

Try:  
`$regexp(%title%,'\].*',']')`

---

<div class="post-metadata">

### Author: ![verypsb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/65b543/32.png) [@verypsb](https://community.mp3tag.de/u/verypsb)
#### Post date: [June 27, 2019, 5:29pm UTC](https://community.mp3tag.de/t/remove-repetition-from-tag/45735/5 "2019-06-27T17:29:29Z")

</div>

Thanks, that did the trick! (format value)

---

<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:28pm UTC](https://community.mp3tag.de/t/remove-repetition-from-tag/45735/6 "2026-02-09T12:28:08Z")

</div>


