# Replace " / " with ", " except when there is only one " / " or it is the last " / ", then replace with " & "

**URL:** <https://community.mp3tag.de/t/replace-with-except-when-there-is-only-one-or-it-is-the-last-then-replace-with/56479>\
**Category:** Support\
**Created:** [February 24, 2022, 9:18pm UTC](https://community.mp3tag.de/t/replace-with-except-when-there-is-only-one-or-it-is-the-last-then-replace-with/56479 "2022-02-24T21:18:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [February 25, 2022, 6:28am UTC](https://community.mp3tag.de/t/replace-with-except-when-there-is-only-one-or-it-is-the-last-then-replace-with/56479/4 "2022-02-25T06:28:47Z")

</div>

Then try the following:  
First (simple) replace all slashes / with a comma.  
Then try the following "Replace with regular expression":  
Search string: `(.*), (.*)`  
Replace with: `$1 & $2`

The greadiness will take care that this always happens only to the last comma.

---

_[View the full topic](https://community.mp3tag.de/t/replace-with-except-when-there-is-only-one-or-it-is-the-last-then-replace-with/56479)._
