Added the basic implementation of regex matcher