correcting the regex