regular expression matching type