Source Insight正则表达式

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)

 

 

你可能感兴趣的:(Source Insight正则表达式)