转载请标明出处: http://www.cnblogs.com/why168888/p/6445044.html 本文出自:[Edwin博客园] Python正则表达式(总) search(pattern,string,flags=0):在一个字符串中查找匹配 finddall(pattern,string,flags=0):找到匹配,返回所有匹配部分的列表 sub(pattern,repl,string,count=0,flags=0):将字符串中匹配正则表达式的部分替换为其他值 split(…