Removed global flag from regex match.