結果 : check if string matches regex pattern python