Predefined Character Classes
The Pattern
API contains a number of useful predefined character classes, which offer convenient shorthands for commonly used regular expressions:
. |
Any character (may or may not match line terminators) |
\d |
A digit: [0-9]
|
\D |
A non-digit: [^0-9]
|
\s |
A whitespace character: [ \t\n\x0B\f\r]
|
\S |
A non-whitespace character: [^\s]
|
\w |
A word character: [a-zA-Z_0-9]
|
\W |
A non-word character: [^\w]
|
https://docs.oracle.com/javase/tutorial/essential/regex/pre_char_classes.html
相关推荐
* Predefined character classes 预定义字符序列 * . Any character (may or may not match line terminators) . 任意字符 (也可能不包括行结束符) * \d A digit: [0-9] \d...
•Predefined Interfaces and Classes •Context options and parameters •Supported Protocols and Wrappers •Security•Introduction •General considerations •Installed as CGI binary •Installed as an ...
Using Predefined Classes 111 Defining Your Own Classes 122 Static Fields and Methods 132 Method Parameters 138 Object Construction 144 Packages 15 The Class Path 160 Documentation Comments 162 ...
STL Function Objects <br/>8.1 The Concept of Function Objects <br/>8.2 Predefined Function Objects <br/>8.3 Supplementary Composing Function Objects <br/>Chapter 9. STL Algorithms...
PEP 3155: Qualified name for classes and functions PEP 412: Key-Sharing Dictionary PEP 362: Function Signature Object PEP 421: Adding sys.implementation SimpleNamespace Using importlib as the ...
FASMARM v1.42 This package is an ARM assembler add-on for FASM. FASMARM currently supports the full range of instructions for 32-bit and 64-bit ARM processors and coprocessors up to and including v8...
implementation comes with an SMTP, IMAP4, and POP3 provider besides the core classes. After installing JavaMail 1.2, install the JavaBeans Activation Framework. Installing JavaMail 1.1.3 To use ...
5.3 Character sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.4 Preprocessing tokens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 4. Current working directory (except CLI) ; 5. The web server's directory (for SAPI modules), or directory of PHP ; (otherwise in ...
2.3 Character sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4 Trigraph sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....