# Replace only the last pair of parentheses in title with brackets

**URL:** https://community.mp3tag.de/t/replace-only-the-last-pair-of-parentheses-in-title-with-brackets/60696
**Category:** Support
**Created:** [April 12, 2023, 11:20pm UTC](https://community.mp3tag.de/t/replace-only-the-last-pair-of-parentheses-in-title-with-brackets/60696 "2023-04-12T23:20:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![spongeAvenger](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@spongeAvenger](https://community.mp3tag.de/u/spongeAvenger)
#### Post date: [April 12, 2023, 11:20pm UTC](https://community.mp3tag.de/t/replace-only-the-last-pair-of-parentheses-in-title-with-brackets/60696/1 "2023-04-12T23:20:27Z")

</div>

Example: I Knew the Bride (When She Used to Rock 'n' Roll) (Swan Song 7'' single version)

I need a regex to replace (Swan Song 7'' single version) with [Swan Song 7'' single version] while not affecting (When She Used to Rock 'n' Roll).

IOW I need a regex to replace only the last pair of parentheses in any title with brackets.

Thanks!

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [April 13, 2023, 3:58am UTC](https://community.mp3tag.de/t/replace-only-the-last-pair-of-parentheses-in-title-with-brackets/60696/2 "2023-04-13T03:58:41Z")

</div>

There are plenty of similar requests for replacing brackets in fields. This one addresses exactly what you are asking for;

> [@Brackets HELP](https://community.mp3tag.de/t/brackets-help/12867):
>
> I have a bunch of music MP3 files in a folder. Some of them have their title tag set as, for example: Back Up (Feat. xx) (Album Version) I want to create an action that will define, if title tag has two pairs of round brackets "()", the second pair should be replaced with square ones "[]" Back Up (Feat. xx) [Album Version] Is it possible to create such action (expression) ?

---

<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: [May 13, 2023, 3:59am UTC](https://community.mp3tag.de/t/replace-only-the-last-pair-of-parentheses-in-title-with-brackets/60696/3 "2023-05-13T03:59:02Z")

</div>

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