Test regular expressions