I have thousands of movies and most of the titles are of the form:
This.Is.The.movie.Title.yyyy.details.of.the.resolution.and.audio.format.mkv
I want to convert them to this:
This Is The Movie Title - yyyy.details.of.the.resolution.and.audio.format.mkv
I have managed to get a regular expression to match to the yyyy part and I’m using this with a macro in TextMate to then search and replace the periods in the text prior to the year, with spaces. But this is very clunky.
This is what I have so far:
(.)(19[2-9]|20[0-2])d.
Could someone kindly please suggest how to expand this to perform the whole match and replacement? It is beyond my current regexp skills.
My workaround is to use the macro, which works but is not an elegant solution
user25579674 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.