test codes about regular expression