Implemented Regular Matching.