# How do replace the last comma in a title with "&"

**URL:** <https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649>\
**Category:** Support\
**Created:** [October 31, 2020, 6:18pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649 "2020-10-31T18:18:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![royden](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@royden](https://community.mp3tag.de/u/royden)\
**Post date:** [October 31, 2020, 6:18pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/1 "2020-10-31T18:18:41Z")

</div>

Suppose the title is AAA (feat. x, y, z). Is there any operation or action to make it AAA (feat. x, y **&** z) , or replace the last comma with "&", automatically? Thanks in advance

---

<div class="post-metadata">

**Author:** ![royden](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@royden](https://community.mp3tag.de/u/royden)\
**Post date:** [October 31, 2020, 6:20pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/2 "2020-10-31T18:20:38Z")

</div>

also is there any variable i can use instead of a name

---

<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:** [October 31, 2020, 6:23pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/3 "2020-10-31T18:23:53Z")

</div>

Try an action of the type "Format value" for TITLE  
Format string: `$regexp(%title%,'(.*), (.*)',$1 & $2)`

---

<div class="post-metadata">

**Author:** ![royden](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@royden](https://community.mp3tag.de/u/royden)\
**Post date:** [October 31, 2020, 6:27pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/4 "2020-10-31T18:27:13Z")

</div>

Thanksss. Will it work for the last comma with any number of commas?

---

<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:** [October 31, 2020, 6:28pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/5 "2020-10-31T18:28:26Z")

</div>

Have you tried it?  
It should.

---

<div class="post-metadata">

**Author:** ![royden](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@royden](https://community.mp3tag.de/u/royden)\
**Post date:** [October 31, 2020, 6:29pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/6 "2020-10-31T18:29:24Z")

</div>

sorry to bother but where can i input this?

edit: wait nvm i just read it from ur comment

---

<div class="post-metadata">

**Author:** ![royden](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@royden](https://community.mp3tag.de/u/royden)\
**Post date:** [October 31, 2020, 6:31pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/7 "2020-10-31T18:31:03Z")

</div>

omg it worked thanks so much

---

<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:** [November 30, 2020, 6:31pm UTC](https://community.mp3tag.de/t/how-do-replace-the-last-comma-in-a-title-with/50649/8 "2020-11-30T18:31:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
