been screwing my head up trying to get this to work. I wonder whether doing two things at once is my problem.
My song title appears like this:
Puro Rosáceae (KMOS Harmonizer Dub)
I want it to appear like this:
Puro Rosáceae [kmos harmonizer dub]
To do this I have been using an Action with a Format String as follows: $replace($lower(%title%),'(','[',')',']')
However this results in this:
puro rosáceae [kmos harmonizer dub]
I understand why, as I'm applying the %lower to my title before doing the parentheses replacement however I can't get my head around how I target the text within the parentheses with the %lower first. I suspect I'm going about this in the wrong way.
I would try it in two steps.
First use this regular expression: $regexp(%TITLE%,(\(.*\)),\L$1)
Then in a second step, replace the brackets as you already have it (without the $lower part)
Short explanation for the regexp:
Search the first opening bracket, put everything following it until a closing bracket into a group.
Write the content of the captured group in lowercase.
You could write it with this syntax for the capturing part too: \((.*)\)
This would not capture the brackets itself. But that doesn't matter in this case, because a bracket looks the same in normal/upper/lowercase