您的位置:首页 > 其它

Source Insight正则表达式

2015-05-29 20:31 357 查看
Source Insight正则表达式只支持以下形式:

元字符(meta character)

^       (at the beginning only) beginning of line

.       any single character

$       the end of the line

*       zero or more occurrences of the precedingcharacter

+       one or more occurrences of the precedingcharacter

-       在字符集合中定义一个区间。如[A-Za-z],不在[]中使用时无需转义

\       对下一个字符转义

[abc]   any single character that belongs to the set abc

[^abc]  any single character that does not belong to the set abc

转义字符(escape character)

\\      a backslash character

\t      a tab character

\s      a space character

\w     white space (a tab or a space character)

组(group)

\(abc\)     匹配“abc”并存储

组引用

\n          (n=1..9)

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: