I am trying to extract the year in ( ) for a given title
Example:
"This is 40 (2012)"
returns: "This is 40"
title = mTitle.replace(/[^a-zA-Z:\s]/g, '');
This works except for titles that also have a number before the parenthesis. I'm also trying to get the year.
year = mTitle.replace(/\D+/g, '');
I having a trouble wrapping my mind around it.