regular expression reader program