Text Pattern |
Expression |
Any character |
. (period) |
Any of the values separated by vertical bars within parentheses: the vertical bar represents "or" |
(this\that\other) |
Any word character {a-z,A-Z, 0-9} |
\w |
Any non-word character |
\W |
Any digit {0-9} |
\d |
Any non-digit |
\D |
Any white space {spaces and/or tabs and/or carriage returns} |
\s |
Any non-white space |
\S |
Any punctuation character |
\p |
Any non-punctuation character |
\P |
Note: A few characters have special meaning.
Related Topic: