correcting the regex groups