你先看看资料吧。- """
- Python正则表达式
- http://www.runoob.com/python/python-reg-expressions.html
-
- Python正则表达式指南
- http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html
-
- """
-
- import re
- a="abcabcab"
-
- reg=re.compile(r"(abc)\1")
- aresult=re.match(reg,a)
- print(aresult)
复制代码
|