currently, I use the action button to capitalize the characters after "(-_." and I would like to add the sequence dash + space like "- " so that for example
A new day yesterday - starship trooper (wurm)
becomes
A new day yesterday - Starship trooper (Wurm)
or that
Of scorpions & bells - the devil and me
becomes
Of scorpions & bells - The devil and me
but that
One africa (Independence cha-cha)
remains
One africa (Independence cha-cha)
because there is no space after the "-".
Action of the type "Format value" $regexp("A new day yesterday - starship trooper (wurm)",'\((.)','(\u$1') = A new day yesterday - starship trooper (Wurm)
and another $regexp("A new day yesterday - starship trooper (wurm)",' - (.)',' - \u$1') =A new day yesterday - Starship trooper (wurm)
Indeed.
And that is why you insert the property variable name instead of the string constant. The pattern should remain the same.
In your case I assume that you fiddle with the filename (which could be re-written much easier if you had the correct character cases in the fields) so it shoud look like $regexp(%_filename%,'\((.)','(\u$1')
It's perfect, I took the second expression "$regexp("A new day yesterday - starship trooper (wurm)",' - (.)',' - \u$1')" and I adapted it to my case and everything is fine