rust : understanding the regex case