会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
helloweworld
博客园
首页
新随笔
管理
2014年6月10日
python--正则表达式 字符串匹配
摘要: import rereg = re.compile(r"voip", re.IGNORECASE)print reg.findall("23oipvoipsnvoipc")输出['voip', 'voip']findall() 找到 RE 匹配的所有子串,并把它们作为一个列表返回http://wik...
阅读全文
posted @ 2014-06-10 22:29 helloweworld
阅读(1177)
评论(0)
推荐(0)