Fix mistaken use of regex.