文档介绍:Category Escapes Character Blocks Block Block Block Regular Expression Examples
Start End Name
A category escape matches a character from a set Any character within a Unicode character block
specified by a property or using a block: can be matched using a category escape 2190 21FF Arrows ^[A-Za-z]
\p indicates match any character in the set. consisting of “Is” followed by the block‟s name. 2200 22FF MathematicalOperators An Ascii letter at the start of a string or line.
For example: \p{IsBasicLatin} 2300 23FF MiscellaneousTechnical
\P indicates match any character not in the set. ^\p{Lu}
2400 243F ControlPictures
Block Block Block An upper-case Unicode letter at the start of a
Categories and Properties 2440 245F OpticalCharacterRecognition
Start End Name 2460 24FF EnclosedAlphanumerics string or line.
Any character can be matched by its properties 0000 007F BasicLatin 2500 257F BoxDrawing \.$
using a category escape consisting of a Category
0080 00FF Latin-1Supplement 2580 259F BlockElements
code followed by an optional Property code: A period at the end of a string or line.
0100 017F LatinExtended-A 25A0 25FF GeometricShapes
\p{IsGreek}+
\p{L} Any Letter 0180 024F LatinExtended-B 2600 26FF MiscellaneousSymbols
One or more Greek letters.
\p{Lu} Any Upper-case Letter 0250 02AF IPAExtensions 2700 27BF Dingbats
02B0 02FF SpacingM