added regex isMatch