This page exists as a resource for Regular Expressions (also shortened as RegEx or RegExp) frequently used in EditPlus. In order to learn more about the particulars of creating a regular expression in EditPlus, see regular expression syntax. Also note that some standard regular expressions are currently not supported.
Note: EditPlus only supports [POSIX] Regular Expressions, not [PCRE] (Perl-Compatible Regular Expressions), which means there are no back-references, no look-aheads, no fancy quantifiers, and no convenient character group syntax]]. Just your basic ^, $, +, *,??, [ ], [^ ], syntax. Also note that +/* are always greedy.
EditPlus supports Regular Expressions in search and replace, but its engine is not as feature-rich as others. A list of common regular expression features not available in EditPlus is available here. Please see Regular Expressions for some commonly used examples.
Operators and Syntax Supported in EditPlus? 在EditPlus中支持的操作符和語法
\?
escape (\ = \\) used for matching characters that have special meaning as regular expressions
轉義符號,用于匹配那些作為正則表達式有特殊含義的字符(比如要匹配字符\,使用\\即可)
^?
(caret) beginning of line (assertion)
匹配一行的開始(插入)
$?
end of line (assertion)
匹配一行的結束(插入)
\t?
horizontal tab (0x09)
制表符(即對應ASCII代碼0x09)
\n?
newline (0x0A or 0x0D or 0x0D+0x0A)
新的一行(對應ASCII代碼0x0A 或 0x0D 或 0x0D+0x0A)
.?
(period) any character
代表任意字符
( )?
referencable grouping, see \0 - \9 below, e.g. (foo) matches "foo"
表達式分組標記,可引用的組,看后面的\0 - \9,例如(foo)匹配"foo"
[ ]?
character class (or-list), e.g. [abc] matches "a", "b", or "c"
匹配字符集合或者字符列表中任意一個字符,例如 [abc] 匹配 "a", "b", 或 "c"
[^ ]?
negated character class, e.g. [^abc] matches a character that is not "a", "b", or "c"