1. 程式人生 > >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