Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97471

Regex does not see group

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 5.12.11, 6.2.0
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None

      Description

      I have the following regular expression (C++ string):

      Python (\\d+(\\.\\d+){0,3})

      For this string: "Python 3" it has match, but lastCapturedIndex is 1. Thus I can see the whole match only. I can't access the group with the version.

      But if the string will be for example: "Python 3.5" then it see the group. lastCapturedIndex is not 1 anymore.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes