Javaregex 简明教程

Matching JAVA Character Classes

以下是使用 Java 中正则表达式匹配 JAVA 字符类的各种示例。

Following are various examples of matching JAVA character classes using regular expression in java.

Sr.No

Construct & Matches

1

\p{javaLowerCase}Equivalent to java.lang.Character.isLowerCase().

2

\p{javaUpperCase}Equivalent to java.lang.Character.isUpperCase().

3

\p{javaWhitespace}Equivalent to java.lang.Character.isWhitespace().

4

\p{javaMirrored}Equivalent to java.lang.Character.isMirrored().