handle path in regexs