implemented regex matching, Yay!