Test regular expression