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

A false "lookbehind assertion is not fixed length" error with QRegularExpression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • Core: Other
    • None
    • Windows

    Description

      The regular expression lookbehind assertion IS fixed length, yet QRegularExpression fails, claiming it is not fixed.

       

      QRegularExpression tr = QRegularExpression("(?<=face=\"Times\" color=\"green\"><i>\()(.*?)(?=\)<\/i><\/font><\/td><\/tr>)");
      qWarning() << tr.isValid() << tr.patternErrorOffset() << tr.errorString(); // false 0 "lookbehind assertion is not fixed length" 
      

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            dgo dgo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes