add regular expression spec.