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

Regex does not see group

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.12.11, 6.2.0
    • Core: Other
    • 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

            thiago Thiago Macieira
            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