Fixing a regex that have gone wrong.