reset the regex before exec()ing it