I have a few files mixed in among others that end in ", The" as in "Night of the Living Dead, The". What I want is "The Night of the Living Dead." So, being a regex dummy, how do I do this?
Thanks in advance.
"Night of the Living Dead, The"
"The Night of the Living Dead."
(.+) ==> find one-or-more of any sign
, [tT]he ==> but only till found: an coma followed by an space followed by any case 'T' and 'he'
$ ==> be sure that that 'The' is found only at the end of the file name and don't match on something like
"Night of the Living Dead, The word" or "Night of the Living Dead, Theater version"
The ==> added by hand on your own
\1 ==> get back what is matched by the first (...) capturing group ==> "(.+)"