# How to batch replace the last comma with ampersand (&) character.

**URL:** <https://community.mp3tag.de/t/how-to-batch-replace-the-last-comma-with-ampersand-character/17728>\
**Category:** Support\
**Created:** [March 8, 2016, 7:26am UTC](https://community.mp3tag.de/t/how-to-batch-replace-the-last-comma-with-ampersand-character/17728 "2016-03-08T07:26:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 8, 2016, 7:49am UTC](https://community.mp3tag.de/t/how-to-batch-replace-the-last-comma-with-ampersand-character/17728/2 "2016-03-08T07:49:18Z")

</div>

Use an action of the type "Replace with regular expression" for ARTIST  
Search string: `(.*), (.*)`  
Replace string: $1 & $2

Due to the greediness of the expression, only the last comma is replaced. Should work with any Artist that has comma in the name.

Will produce problems for artists that already have an ampersand in the name like "Emerson, Lake & Palmer", "Earth, Wind & Fire", "Bell, Book & Candle".

---

_[View the full topic](https://community.mp3tag.de/t/how-to-batch-replace-the-last-comma-with-ampersand-character/17728)._
