結果 : python check if regex pattern is valid