結果 : check if line matches regex python