python 字符串模式匹配
2015-07-08 16:32
766 查看
regex = ur"xxx(.*?)yyy" match = re.search(regex, text, re.DOTALL) if match: result = match.group(1)re.DOTALL : 多行匹配
相关文章推荐
- python调用SOA服务
- python捕捉对象(异常处理)
- python初学-02常用概念
- python初码
- 一句Python命令启动一个Web服务器
- python进阶一:高阶函数
- python六核心编程——条件和循环
- python 通过pywin32获取windows日志
- 【leetcode】Candy(python)
- Python里的string 和 unicode (二)
- Python里的string 和 unicode (一)
- Python实现批量下载图片的方法
- Prototype pattern (Python recipe)
- 纯python实现的web: tornado性能测试以及实际使用解析
- python中的列表(list),字典(dict),字符串(str)的基本操作
- 十分钟搞定pandas
- Python正则表达式-2
- Python正则表达式-1
- Python第三方常用工具、库、框架等
- 创业公司都在使用的3款Python库