Delete in Title "(Remastered in year xxxx)"

i searched in the forum but didn't find a solution.

some albums have at the end of the title brackets which includes "remastered", like

  • (remastered in 2020)
  • (remastered in 2022)
  • (remastered in new york)
  • (2016 remastered)
  • (remastered edition)

how can i create an action for a title with the logic: "delete the brackets and the text within in case it contains the word remastered"?

You could try an action of the type "Guess value"
Source: %album%
Target string: %album% (remastered%dummy%

it is the title, not album.

So it would be
You could try an action of the type "Guess value"
Source: %title%
Target string: %title% (remastered%dummy%

thank you first of all. I switched "album" with "title" already and tried it but it does not work. the brackets as my example above remains.

You could try
Target string: %title% (%dummy%

But filter for the files in which you want to remove the parts in brackets first.
The action is case-sensitive, BTW.

Another attempt would be to use a regular expression.

This would include your 4th example with the leading year in brackets.
You could use the Convert Tag -> Tag (Alt+5) with a preview
Field: TITLE
Format string:
$regexp(%TITLE%,(.*)(\s\(.*remastered.*\)),$1)

image

Explanation:

Search and group together any character in TITLE until a space and an opening bracket is found.
Group together the space, the opening bracket and whatever is found before the word remastered and after the word remastered including the closing bracket.
$regexp: Leave only everything found before the opening bracket and the space (in the captured group $1) and delete everything else.

Of course you can also use the same format string in an Action "Replace with regular expression".

And as always for regular expressions: They are case-sensitive.
(The word Remastered would not be matched and therefore not replaced)

%title% (%dummy%
works half way.

because imagine the title is:

  • Love (Live) (Remastered 2022)
    Your approach will also delete "(Live)". But this should stay.

It also does not work when the year is at the beginning or something else like:

  • (2013 Remastered)

@LyricsLover
your approach dos not work as well.

The logic must be: Delete the brackets and its content when the word "Remastered" is within the brackets.

That is why I said

something like
%title% HAS "remaster" AND %title% HAS "("

Please let us know a real example where this not work for you.

I will try it now.

Examples:

  • Winds (Remastered 2023)
  • Queen (Remastered)
  • Va (2013 Remastered)
  • Neshabur (Live) (Remastered 2022)
  • Nel (Remastered in 2000)

They all work fine:
Remove remastered text in brackets case insensitive

At least if you follow my advise above to make a regular expression caseINsensitive.

it worked, thank you.

to summarize for future searches from other people:

option 1:
guess value:
%title% (remastered%dummy%`
it does not delete brackets where the word remastered is not at the beginning. Otherwise it works (e.g. "(remastered in 2022)" - it is case sensitive -all perfectly described by @ohrenkino above.

option 2:
tag to tag
$regexp(%TITLE%,(.*)(\s\(.*remastered.*\)),$1)
this is case senstivie.
$regexp(%TITLE%,(.*)(\s\(.*remastered.*\)),$1,1)
this is not case sensitive.
This option allows that the word "remastered" can be somewhere in the bracket and the whole bracket will be deleted.
described perfectly above from @LyricsLover.

@LyricsLover you were right - i did a mistake in terms of capital letter. But the additional 1 in your short video will resolve this as well.

again, thank you both for this fast and great support.

Looks just like

To be not case sensitive, it should be
$regexp(%TITLE%,(.*)(\s\(.*remastered.*\)),$1,1)

it is too late :slight_smile: - just corrected it.

@LyricsLover
can you explain me in your words the part:
"(.*)(\s\(.*remastered.*\)),$1" - with your own words.

I'm not sure what other words I could use then the one I already wrote and what you commented as

in

For which part of my text or the picture do you need some more/other words from me?

I read it and understand it in general, but even if i read the FAQs, i don't get it.
$regexp(%TITLE%,(.*)(\s(.remastered.)),$1)
$regexp = OK
(%TITLE%, = OK

(.*)(\s(.remastered.)) --> which parts are "together" and represent "what"?

,$1) = OK

2 things:
could you please follow the request in respect to formatting support queries?

The code example in your post

does not show correcty.

Second, have a look at the documentation for regular expressions:

This picture already explains it:

(.*) = group #1 = Any character .* before the following group = represented as $1
(\s\(.*remastered.*\)) = group #2 = A space \s, an opening bracket \(, any character .*, the word "remastered", any character .*, the closing bracket \) = represented as $2. The content of this second capturing group $2 is not used in the $regexp-formula.

for the future, i will follow the formatting :slight_smile:

i did look at it but did not find the dot "." like ".*" in the example above.

i understood the picture. But each part in the bracket was difficult for me to read. however, your description here helped me a lot now:

thank you very much!