結果 : java check if pattern matches string