天天看點

re.match的使用方法

re.match的使用方法

re.match(pattern, string)

pattern為比對規則,即輸入正規表達式.

string為,待比對的文本或者字元串

re.match必須要以從字元創的開頭開始比對

繼續閱讀