I miss the really obvious thing here, but I'm new to regex, so please; -)
I have several films in any format, which may or may not be attached to the year.
My Movie Name 2010 Some.Other.Super.Cool.Movie The~Third|Movie.2010
Now, using (.+)\W(\d{4}) , I can extract two films with dates into two groups, one of which contains a name and the other a year, but the middle one is ignored? I am just a little sure how to make the segment a year optional.
Ideally ;-), I could use one expression to return names with \ W converted to spaces, but that's a different matter.
Thank you in advance
source share