python regex
2016-07-02 21:48
288 查看
re.match:
match from the beginning of the string
re.search:
scan through the whole string to find a match
dash '-' inside square '[]' means a range. put dash in the end to just match a dash
match from the beginning of the string
re.search:
scan through the whole string to find a match
dash '-' inside square '[]' means a range. put dash in the end to just match a dash
相关文章推荐
- Python开发的10个小贴士
- Python 面试题(下)
- Python操作splite3的例子
- Python 面试题(上)
- Python 面试题(上)
- 初识python 3
- Python学习笔记1:Python是什么?
- Python 使用 urllib2 防止302跳转
- 如何用Python写一个贪吃蛇AI
- Python3内置函数详解
- python os模块详解
- Python基于Tkinter的二输入规则器(乞丐版)
- python字符串格式化方法 format函数的使用
- Python使用Srapy框架爬虫模拟登陆并抓取知乎内容
- python 开发模拟板Web QQ(五)
- Python正则表达式详解
- Python调用有道web端翻译,翻译中英文
- 基于邻域的协同过滤算法(一)
- python、pip、whl安装和使用
- 运动检测ViBe算法python实现