I have several files that with file names that contain the track number in the file name, but have no track number listed in the track field. I want to extract and write the track field.
Die laute Lili (2/5): Pepipuppe - Betthupferl - Gute-Nacht-Geschichten für Kinder - BR - 03.12.2019
Track number should be
I came up with the following, but I'm only a regular expression beginner. So my solution seems rather clumsy to me and it only works for one digit track numbers
Copy the content of the title track field to the track field
Format value "TRACK": %title%
Delete all non number characters from the track field
Regular expression"TRACK": "[^\d]" -> ""
Keep the first number of the track field and delete all other numbers
Regular expression"TRACK": "^(\d)\d.*" -> "$1"
How can I improve this?