Well, thanks for the help with the "in" before Dur/moll, just works perfectly the way you told me...
There are two problems left, one of which I think you can solve, the other will be unsolvable.
Problem 1:
Some track names I get from Amazon or freedb have "in B" at the end of the filename, just before the file extension. I want to catch those and replace them with "in H-Dur" (if capital B of course). otherwise to "in h-moll". I could solve all cases in which this expression shows up somewhere else in the filename, just the end of line case is a problem.
I want to exclude the cases in which it already has a Dur or moll signature.
Additionally it should also replace "in B flat" to "in B-Dur" and "in fis sharp" to "in fis-moll". So also the expressions "flat/bemol" and "sharp/#/diese/dièse/diesis/sostenido" should be honored correctly. Then all common key signature languages (eng/fra/ita/esp) are included. I think the simplest way would be to first replace all these special ending values into "flat" or "sharp" and then process one expression which does the formatting of the value
Problem 2 (which I think is unsolvable):
The formatting I receive from Amazon or freedb looks like this
01 - String Quartet No 14 in d-moll, D 810 - Allegro
02 - String Quartet No 14 in d-moll, D 810 - Andante con moto
03 - String Quartet No 14 in d-moll, D 810 - Scherzo: Allegro molto
04 - String Quartet No 14 in d-moll, D 810 - Presto
and I would like to have it like this
01 - String Quartet No 14 in d-moll, D 810 - I - Allegro
02 - String Quartet No 14 in d-moll, D 810 - II - Andante con moto
03 - String Quartet No 14 in d-moll, D 810 - III - Scherzo: Allegro molto
04 - String Quartet No 14 in d-moll, D 810 - IV - Presto
That would mean that I can do a roman number sequencing action in consecutive tracks I highlight. Until now I have to do all this manually, which is very time consuming
And to make it even more difficult, it would be very cool to be able to solve "elimination of same string elements from second occurrence on", so that it looks like this
01 - String Quartet No 14 in d-moll, D 810 - I - Allegro
02 - II - Andante con moto
03 - III - Scherzo: Allegro molto
04 - IV - Presto
Appreciate your help!
Thanks