Python入門教程 正則表達式

import repython match(pattern,string,flags=0) 模式,匹配文本,方法 元字符 . \w \s \d \b ^ $ ? + * {n} {n,} {n,m} x|y [xyz] [a-z] [^x] [^abc] 匹配內容 match = re.search("\d",test1test) match.group() >>>1 檢索和替換code
相關文章
相關標籤/搜索