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)
0 评论:
发表评论