摘要: 1. 正则表达式常用匹配规则 1.1 匹配某个字符串 text = 'hello' ret = re.match('he',text)#math从字符串起始位置开始匹配,起始位置未匹配返回None print(ret.group()) >> he 以上便可以在hello中,匹配出he。 1.2 点( 阅读全文
posted @ 2019-03-28 15:23 enjoyzier 阅读(1538) 评论(0) 推荐(0)