added class with static methods for testing regex matches.