removed some irrelevant lines of code for regular expression. cut/paste tyopo