Testing regex function