An incorrect example in the documentation of the Pattern class

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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".


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

              Created:
              Updated: