tweak the action of the regex to handle more sophisticated cases like apostrophes