Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316390

An incorrect example in the documentation of the Pattern class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs

      A DESCRIPTION OF THE PROBLEM :
      I think that the documentation of the Pattern class (https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/regex/Pattern.html) contains an incorrect example. In the "Character Classes" point the "[a-e][i-u]" example is not a union but a pattern matching two characters, e.g. "ai".


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: