completed regexMatching