Matches a single alphabetic character ('a', 'A', etc).
Matches a single alphabetic character ('a', 'A', etc). Could be represented in a regular
expression as [:alpha:]
.
Matches a single alphanumeric character ('0', 'a', 'A', etc).
Matches a single alphanumeric character ('0', 'a', 'A', etc). Could be represented in a regular
expression as [:alnum:]
.
A single ASCII character [ -~]
.
A single ASCII character [ -~]
. Could be represented in a regular expression as
[:ascii:]
.
A single control character [\x00-\x1F\x7F]
.
A single control character [\x00-\x1F\x7F]
. Could be represented in a regular expression as
[:cntrl:]
.
Matches a single digit character ('0', '3', '9', etc).
Matches a single digit character ('0', '3', '9', etc). Could be represented in a regular
expression as \d
or [0-9]
.
Matches a single digit character ('0', '3', '9', etc).
Matches a single digit character ('0', '3', '9', etc). Could be represented in a regular
expression as \d
or [0-9]
.
A single visible (graphical) character [\x21-\x7E]
.
A single visible (graphical) character [\x21-\x7E]
. Could be represented in a regular
expression as [:graph:]
.
Matches a single hexadecimal digit ('0', '1', 'A', 'F', 'a', 'f', etc).
Matches a single hexadecimal digit ('0', '1', 'A', 'F', 'a', 'f', etc). Could be represented in
a regular expression as [:xdigit:]
.
A single horizontal whitespace character [\t ]
.
A single horizontal whitespace character [\t ]
. Could be represented in a regular expression
as \h
.
Matches a single lowercase character ('a', 'z', etc).
Matches a single lowercase character ('a', 'z', etc). Could be represented in a regular
expression as [a-z]
or [:lower:]
.
Opposite of alphaChar.
Opposite of alphaChar. Could be represented in a regular expression as
[^[:alalpha:]]
.
Opposite of alphaNumericChar.
Opposite of alphaNumericChar. Could be represented in a regular expression as
[^[:alnum:]]
.
Opposite of asciiChar.
Opposite of asciiChar. Could be represented in a regular expression as
[^[:ascii:]]
.
Opposite of controlChar.
Opposite of controlChar. Could be represented in a regular expression as
[^[:cntrl:]]
.
Opposite of digit.
Opposite of digit. Could be represented in a regular expression as
\D
.
Opposite of graphChar.
Opposite of graphChar. Could be represented in a regular expression as [^[:graph:]]
.
Opposite of hexDigitChar.
Opposite of hexDigitChar. Could be represented in a regular expression as
[^[:alnum:]]
.
Opposite of horizontalWhitespaceChar; this matches on any character that is not a tab or a space.
Opposite of horizontalWhitespaceChar; this matches on any character that is not a tab
or a space. Could be represented in a regular expression as \H
.
Opposite of lowerAlphaChar.
Opposite of lowerAlphaChar. Could be represented in a regular expression as
[a-z]
.
or
[[:lower:]]
Opposite of printableChar.
Opposite of printableChar. Could be represented in a regular expression as [^[:print:]]
.
Opposite of punctuationChar.
Opposite of punctuationChar. Could be represented in a regular expression as
[^[:punct:]]
.
Opposite of upperAlphaChar.
Opposite of upperAlphaChar. Could be represented in a regular expression as
[a-z]
.
or
[[:upper:]]
Opposite of whitespaceChar.
Opposite of whitespaceChar. Could be represented in a regular expression as
\S
.
Opposite of wordChar.
Opposite of wordChar. Could be represented in a regular expression as
\W
.
A single printable character (visible character or space).
A single printable character (visible character or space). Could be represented in a regular
expression as [:print:]
or \x20-\x7E
.
A single punctuation character (;
, !
, etc)..
A single punctuation character (;
, !
, etc).. Could be represented in a regular expression
as [:punct:]
.
Matches a single uppercase character ('a', 'z', etc).
Matches a single uppercase character ('a', 'z', etc). Could be represented in a regular
expression as [a-z]
or [:upper:]
.
A single whitespace character [\t\n\f\r ]
.
A single whitespace character [\t\n\f\r ]
. Could be represented in a regular expression as
\s
.
Matches a single "word" character ('A', 'a', '_', etc).
Matches a single "word" character ('A', 'a', '_', etc). Could be represented in a regular
expression as \w
.