added three stage regular expressions: check/match/replace