Java Reference
In-Depth Information
POSIX
CHARACTER CLASSES (
US
-
ASCII
ONLY)
whitespace character;
[\t\n\x0B\f\r]
\p{Space}
C
LASSES FOR
U
NICODE BLOCKS AND CATEGORIES
character in the Greek block (simple
block)
\p{InGreek}
uppercase letter (simple category)
\p{Lu}
currency symbol (
$
,
¥
,
£
, etc.)
\p{Sc}
character except one in the Greek block
(negation)
\P{InGreek}
any letter except an uppercase letter
(subtraction)
[\p{L}&[^\p{Lu}]]
B
OUNDARY MATCHERS
beginning of a line (if in multiline mode)
^