-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: core-libs
-
generic
-
generic
Emoji-related properties introduced in ([JDK-8303018](https://bugs.openjdk.org/browse/JDK-8303018)) can now be used as binary properties in the `java.util.regex.Pattern` class. One can match characters that have Emoji-related properties with the new `\p{IsXXX}` constructs. For example,
```
Pattern.compile("\\p{IsEmoji}").matcher("🉐").matches()
```
returns `true`.
```
Pattern.compile("\\p{IsEmoji}").matcher("🉐").matches()
```
returns `true`.