python 中 Re庫 函數 re.match()

re.match(pattern, string, flags=0) 從一個字符串的開始位置起匹配正則表達式,返回match對象 pattern : 正則表達式的字符串或原生字符串表示 string : 待匹配字符串 flags : 正則表達式使用時的控制標記 常用標記 說明 re.I   re.IGNORECASE 忽略正則表達式的大小寫,[A‐Z]能夠匹配小寫字符 re.M   re.MULT
相關文章
相關標籤/搜索