change the regex function