I have music file names like:
Gorillaz (2001)
Gorillaz (7th State Mix) (2002)
Gorillaz (2001) (Featuring Travis)
Gorillaz (1Mix) (2003)
Gorillaz (1000) (2001)
How do I parse the year in the cleanest, easiest way?
Right now I am parsing them by finding each '(' and then making sure the character count between the ()s are 4 and first char is 1 or 2 and they can be parsed, using TryParse?
Can I parse these kinds of strings using a single Regex?
Edit:
The year can be max 50-60 years old, so not older than 1950.