keep seperator in two segment filename to tag

my file name is like this:
Herbert von Karajan - DG Recordings - 069-01 - (1970) - Beethoven - Musik zu Goethes Trauerspiel Egmont - Op 84 - Ouvertüre.flac

and I would like to have in %track% = 069-01
and in the title :
Herbert von Karajan - DG Recordings - (1970) - Beethoven - Musik zu Goethes Trauerspiel Egmont - Op 84 - Ouvertüre.flac

keeping the " - " between karajan and DG and betwwen recordings and (1970)

Thank you
I'm a newbe to mp3tag

Read FAQ How do I create a new action?
Actions

Here is a proposal, using a group of actions, doing the whole process in single steps.

Begin Action Group Test_2013#20130112.ptbeau

Action #1
Actiontype 5: Format value
Field ______: TMP_FN
Formatstring: %_filename%

Action #2
Actiontype 7: Import tag fields (guess values)
Source format __: %TMP_FN%
Guessing pattern: %DUMMY% - %DUMMY% - %TRACK% - %DUMMY%

Action #3
Actiontype 5: Format value
Field ______: TMP_FN
Formatstring: $replace(%TMP_FN%,' - '%TRACK%' - ',' - ')

Action #4
Actiontype 5: Format value
Field ______: _FILENAME
Formatstring: %TMP_FN%

Action #5
Actiontype 9: Remove fields
Fields to remove (semicolon separated): TMP_FN

End Action Group Test_2013#20130112.ptbeau (5 Actions)

... other proposal ...

Begin Action Group Test_2013#20130112.ptbeau (2)

Action #1
Actiontype 5: Format value
Field ______: TRACK
Formatstring: $regexp(%_filename%,'^(.+?) - (.+?) - (.+?) - (.+?)$','$3')

Action #2
Actiontype 5: Format value
Field ______: _FILENAME
Formatstring: $regexp(%_filename%,'^(.+?) - (.+?) - (.+?) - (.+?)$','$1 - $2 - $4')

End Action Group Test_2013#20130112.ptbeau (2) (2 Actions)

... other proposal ...

Begin Action Group Test_2013#20130112.ptbeau (3)

Action #1
Actiontype 5: Format value
Field ______: TRACK
Formatstring: $regexp(%_filename%,'^(?:.+?)( - )(?:.+?)\1(.+?)\1(?:.+)$','$2')

Action #2
Actiontype 5: Format value
Field ______: _FILENAME
Formatstring: $regexp(%_filename%,'^(.+?)( - )(.+?)\2.+?\2(.+)$','$1$2$3$2$4')

End Action Group Test_2013#20130112.ptbeau (3) (2 Actions)

DD.20130112.1903.CET

Thank you for the sample. I have use the first one and it did work with a slight modification probably because I did not explain well what I wanted to do. Thanbks again it did work fine. :slight_smile:

Sorry, my bad, I have neglected that you need the tag-field TITLE to be filled from the filename, but not want to change the filename. I am glad that you have done it right by yourself.

DD.20130112.2034.CET