格式跟UNIX/Perl略有不同吧,以下是UE帮助里面的
Symbol
Function
%
Matches the start of line – Indicates the search string must be at the beginning of a line but does not include any line terminator characters in the resulting string selected.
(match 行首)
$
Matches the end of line – Indicates the search string must be at the end of line but does not include any line terminator characters in the resulting string selected.
(match 行末)
?
Matches any single character except newline
(match 除新行外的任意单一字符)
*
Matches any number of occurrences of any character except newline
(match 除新行外的任意数目的任意字符)
+
Matches one or more of the preceding character/expression.
At least one occurrence of the character must be found.
(match 除新行外的超过0个的指定字符)
++
Matches the preceding character/expression zero or more times.
(match 指定字符的0或多次)
^b
Matches a page break
(match 一个分页符)
^p
Matches a newline (CR/LF) (paragraph) (DOS Files)
(match dos格式下的一个新行符)
^r
Matches a newline (CR Only) (paragraph) (MAC Files)
(MAC 格式)
^n
Matches a newline (LF Only) (paragraph) (UNIX Files)
(UNIX格式)
^t
Matches a tab character
(match tab符)
[ ]
Matches any single character, or range in the brackets
(match 单一的字符,或者括号内的字符范围中的一个)
^{A^}^{B^}
Matches expression A OR B
(match 表达式A或表达式B)
^
Overrides the following regular expression character
(忽略后面的正则表达式)
^(…^)
Brackets or tags an expression to use in the replace command.
A regular expression may have up to 9 tagged expressions, numbered according to their order in the regular expression.The corresponding replacement expression is ^x, for x in the range 1-9.
Example: If ^(h*o^) ^(f*s^) matches “hello folks”, ^2 ^1 would replace it with “folks hello”.
(将括号中的表达式赋给^1~^9使用,^1~^9应用在replace中)