Hm,
See attached pictures. Looks good for me.
I attached two dummy files w/o content that I used as test. In the first two pictures I made a test with the import test dialog. You may recognize that you provide two different examples, one with [author - title (year).ext] and the other with [title - author (year).ext]. In this case you need two separate templates for matching the metadata sequence and then switch to the one needed for importing.
For my example I use [author - title (year).ext] with:
Code:
(?P<author>[^_-]+) - (?P<title>[^_].+) \((?P<published>.+)\)
((?P<title>[^_].+) - ?P<author>[^_-]+) \((?P<published>.+)\)
Variations for [author - title (year).ext]:
Code:
(?P<author>[^_-]+) - (?P<title>[^_].+) \((?P<published>[0-9]{4})\)
or
Code:
(?P<author>[^_-]+) - (?P<title>[^_].+) \((?P<published>\d{4})\)
Picture 3 shows the imported files with the correct author, Title and publish year. Be aware you need to uncheck the box for [Read metadata from file contents rather than file name] for reading the meta data from file name, see picture 4
Template for [title - author (year).ext] should be:
Code:
((?P<title>[^_].+) - ?P<author>[^_-]+) \((?P<published>.+)\)