Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8305107 Emoji related binary properties in RegEx
  3. JDK-8305208

Release Note: Emoji Related Binary Properties in RegEx

XMLWordPrintable

      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`.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: