Regular Expressions (Visual Studio)
http://msdn.microsoft.com/en-us/library/2k3te2cs.aspx
常用:
. 任何单个字符(Any character)
* 任何零个或者多个字符(Zero or more)
+ 任何一个或者多个字符(One or more)
^ 行的开始(eginning of line)
$ 行的结束(End of line)
< 单词的开始(Beginning of word)
> 单词的结束(End of word)
/n 换行(Line break)
[] 集合中任何一个字符(Any one character in the set)
[^...] 不在集合中的任何一个字符(Any one character not in the set)
| 逻辑或(Or)
/ 转义(Escape)
{} 捕获(Tagged expression)
:i 标志符(C/C++ Identifier)
:q 带引号的字符串(Quoted string)
:b 空格或者制表符(Space or Tab)
:z 整数(Integer)
本文介绍了正则表达式的常见用法及特殊字符的意义,包括如何匹配任意字符、零个或多个字符、行的开始与结束等,是进行文本处理与搜索的基础。
1706

被折叠的 条评论
为什么被折叠?



