Adding default methods for matches() and groups()