Modify the regex spec test

HYDRASIR-56 #close