- 论坛徽章:
- 0
|
回复 #4 dynamic516 的帖子
[code]
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.
$ 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.
? Matches any single character except newline
* Matches any number of occurrences of any character except newline
+ Matches one or more of the preceding character/expression. At least one occurrence of the character must be found.
++ Matches the preceding character/expression zero or more times.
^b Matches a page break
^p Matches a newline (CR/LF) (paragraph) (DOS Files)
^r Matches a newline (CR Only) (paragraph) (MAC Files)
^n Matches a newline (LF Only) (paragraph) (UNIX Files)
^t Matches a tab character
[ ] Matches any single character, or range in the brackets
^{A^}^{B^} Matches expression A OR 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".
Note - ^ refers to the character '^' NOT Control Key + value.
[/code]
[ 本帖最后由 smonkey0 于 2008-4-11 15:33 编辑 ] |
|