小雪崩 发表于 2018-8-13 08:39:00

python regex-cooperfang的博客

# 函数  # re.compile(pattern, flags=0)--regex   返回的对象是regex
  # re.search(pattern, flags=0)--match    返回的对象是match
  # re.match(pattern,string, flags=0) --match
  # re.fulimatch(match, string, flags=0)--match
  # re.findall(pattern, string flags=0)--list
  # re.finditer(pattern, string, flags=0)--iterator
  # re.sub(pattern, repl, string, count=0, flags=0)--str
  # re.subn(pattern, reple, string, count=0, flags=0) --tuple
  # re.escape(pattern)--characters
  # repurge()
页: [1]
查看完整版本: python regex-cooperfang的博客