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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: