|
DEELX Basic Pattern Syntax: Character Sets
Return: Content | Prev: Quoted characters (\Q...\E) | Next: Custom defined character sets
Character Sets
Can match any one but only one character of a certain set of characters.
Remarks
Standard sets in DEELX:
Set |
Description |
. |
The dot can match any single character except the new-line(\n) |
\w |
Can match any one of alphas, numbers, and the underscore |
\W |
Capital W, can match any one character out of "\w" |
\s |
Can match space, new-line, return etc, any space characters |
\S |
Capital S, can match any one character out of "\s" |
\d |
Can match any digital number, 0~9 |
\D |
Capital D, can match any one character out of 0~9 |
[:alpha:] |
POSIX, match any alpha, A~Z, a~z |
[:^alpha:] |
Negative POSIX, can match any one character out of "[:alpha:]" |
If the match mode is SINGLELINE, the dot can match any character including new-line. Refer to Match Modes for more details.
POSIX sets supported by DEELX:
POSIX set |
Description |
[:alnum:] |
Any one alpha, number (A - Z, a - z, 0 - 9) |
[:alpha:] |
Any one alpha (A - Z, a - z) |
[:ascii:] |
Any ASCII character (\x00 - \x7F) |
[:cntrl:] |
Any control character (\x00 - \x1F, \x7F) |
[:digit:] |
Any one digital number (0 - 9) |
[:print:] |
Any one printable ASCII (\x20 - \x7E) |
[:space:] |
Any space character (\x09 - \x0D, \x20) |
[:graph:] |
Any printable ASCII, excluding space (\x21 - \x7E) |
[:lower:] |
Any one lowercase alpha (a - z) |
[:punct:] |
Any printable ASCII, excluding [:alnum:] |
[:upper:] |
Any one uppercase alpha (A - Z) |
[:xdigit:] |
Any hex number (0 - 9, A - F, a - f) |
[:blank:] |
Space or tab (\x20, \x09) |
If [: is followed by
^ , it is the negative form.
|
|
|