regular expression prototype