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

Matcher returns wrong result group info when matching regex "(abc)+|(abcd)+" against input "abcd"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • b78
    • generic
    • generic
    • Verified

      java regex can not handle "(abc)+|(abcd)+" on string "abcd. The result groups are
      "abcd", "abc", "abcd". The group 1 should be nil.

            sherman Xueming Shen
            sherman Xueming Shen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: