# Merge duplicate words

**URL:** https://community.mp3tag.de/t/merge-duplicate-words/16289
**Category:** Support
**Created:** [November 3, 2014, 9:33am UTC](https://community.mp3tag.de/t/merge-duplicate-words/16289 "2014-11-03T09:33:02Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 10, 2020, 9:30pm UTC](https://community.mp3tag.de/t/merge-duplicate-words/16289/10 "2020-11-10T21:30:37Z")

</div>

Try this one from the other thread: (I adapted it for "/" as separator)

```
$trim($regexp(%Genre%,'(?:(?<=/)|(?<=\A))\s*([^/]*)\s*/(?=.*?(?<=/)\s*\1(?=/|\Z))',,1))
```

---

_[View the full topic](https://community.mp3tag.de/t/merge-duplicate-words/16289)._
