Fix bug in regex. Wasn't capturing closing quote correctly