摘要: 一、正则表达式常用 1.re.match:只尝试从字符串的查找,后面不作查找。 例子: import re text="aabcdefg123123" m=re.match('a',text) if m: print(m.group()) else: print("not match") #结论只能 阅读全文
posted @ 2016-03-09 08:38 willianflasky 阅读(219) 评论(0) 推荐(0) 编辑