escape regex dot character and put it first