# I need help with tagger scripts to change the titles to remove anything in brackets e.g. (remastered)

**URL:** https://community.metabrainz.org/t/i-need-help-with-tagger-scripts-to-change-the-titles-to-remove-anything-in-brackets-e-g-remastered/814318
**Category:** MusicBrainz Picard
**Created:** [March 2, 2026, 5:12pm UTC](https://community.metabrainz.org/t/i-need-help-with-tagger-scripts-to-change-the-titles-to-remove-anything-in-brackets-e-g-remastered/814318 "2026-03-02T17:12:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TicketToTheMoon](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@TicketToTheMoon](https://community.metabrainz.org/u/TicketToTheMoon)
#### Post date: [March 2, 2026, 5:12pm UTC](https://community.metabrainz.org/t/i-need-help-with-tagger-scripts-to-change-the-titles-to-remove-anything-in-brackets-e-g-remastered/814318/1 "2026-03-02T17:12:56Z")

</div>

$set(title,$rreplace(%title%,‘)’,))

$set(title,$rreplace(%title%,\(,))

ive tried stuff like this but i get error messages

---

<div class="post-metadata">

### Author: ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)
#### Post date: [March 2, 2026, 6:32pm UTC](https://community.metabrainz.org/t/i-need-help-with-tagger-scripts-to-change-the-titles-to-remove-anything-in-brackets-e-g-remastered/814318/2 "2026-03-02T18:32:12Z")

</div>

Yes, doing regular expressions can be tricky anyway. Doing so inside tagger script can become really tricky due to the double escaping needed.

Try this script:

```taggerscript
$set(title,$rreplace(%title%,\\\([^\)]*\\\)\$,))

```

This will only replace anything “(…)” at the end of the title, not something in between. If you want this differently, remove the `\$` at the end of the search expression.

To break this down a bit more, the actual regular expression here is `\([^)]*\)$`. The braces need escaping with a backslash, as they are special characters for regular expressions. See [regexr.com/8l28d](http://regexr.com/8l28d) for a demonstration of this regex.

But when using this inside a tagger script, you need to escape `\`, `(`, `)` and `$` all with a backslash again, as they are special characters in tagger script. So you end up with `\\\([^\)]*\\\)\$`.
