您的位置:首页
re正则表达式13_review of regex symbols
2016-02-27 21:56
211 查看
Review of Regex Symbols
This chapter covered a lot of notation, so here’s a quick review of what you learned:The
?matches zero or one of the preceding group.
The
*matches zero or more of the preceding group.
The
+matches one or more of the preceding group.
The
{n}matches exactly n of the preceding group.
The
{n,}matches n or more of the preceding group.
The
{,m}matches 0 to m of the preceding group.
The
{n,m}matches at least n and at most m of the preceding group.
{n,m}?or
*?or
+?performs a nongreedy match of the preceding group.
^spammeans the string must begin with spam.
spam$means the string must end with spam.
The
.matches any character, except newline characters.
\d,
\w, and
\smatch a digit, word, or space character, respectively.
\D,
\W, and
\Smatch anything except a digit, word, or space character, respectively.
[abc]matches any character between the brackets (such as a, b, or c).
[^abc]matches any character that isn’t between the brackets.
相关文章推荐
- hdu 3338 Kakuro Extension(网络流dinic邻接表实现)
- 两个队列模拟一个栈
- 第一篇博客
- linux内核分析 第一周
- java annotation
- Hadoop 6、第一个mapreduce程序 WordCount
- 面试之数据库算法http://www.newsmth.net/nForum/#!article/Algorithm/37574?p=1
- 面向对象——意图与逻辑
- 【Android】14.1 内部文件存储和读取
- scala环境变量配置
- 从网页(web page)到应用(Application)
- R.java不能自动更新
- 如何使NSLog只在Debug模式下有效
- Delphi制作图像特殊显示效果
- JSTL中EL标签与Struts2中OGNL标签在JSP页面上的区别
- 占
- 分治法
- [转]华为离职副总裁徐家骏的工作感悟
- 关于/proc/config.gz不存在的问题
- 模式识别与机器学习(一):概率论、决策论、信息论