Implemented regex matching of examples