|
发表于 2009-6-1 21:17:01
|
显示全部楼层
“[”如果是单字节的那个,要加转义,就如楼上说得
[XXX]表示任何由XXX中字符组成的串
Patterns can contain several special character for wild-card matching.
* match any number of characters or white space
? match a single character
%d match any number of digits (0-9)
%w match any number of alpha characters (a-z) (a word)
%a match any number of alphanumeric characters (a-z,0-9)
%s match any amount of white space (spaces, tabs)
%x match any amount of non-white space
[range] match any amount of characters listed in range
^ force pattern to match starting at the beginning of the line
$ force pattern to match ending at the end of the line
(pattern) save the matched pattern in a parameter %1 though %9
~ quote the next character to prevent it to be interpreted as a wild card.
{val1|val2|val3|...} match any of the specified strings
{^string} do not match the specified string
[ 本帖最后由 duno 于 2009-6-1 09:30 PM 编辑 ] |
|