In http://vimdoc.sourceforge.net/htmldoc/usr_27.html#27.6
item matches equivalentUsing this predefined ranges works a lot faster than the character range it stands for.
\d digit [0-9]
\D non-digit [^0-9]
\x hex digit [0-9a-fA-F]
\X non-hex digit [^0-9a-fA-F]
\s white space [ ] (and )
\S non-white characters [^ ] (notand )
\l lowercase alpha [a-z]
\L non-lowercase alpha [^a-z]
\u uppercase alpha [A-Z]
\U non-uppercase alpha [^A-Z]
But they can't be used inside the "[]" .
:-)
没有评论:
发表评论