if re.match(regex, content): blah.. You could also use re.search depending on how you want it to match. if re.search(r'pattern', string): Simple if-test: if ...
確定! 回上一頁