結果 : how to check if string matches regex python