Uploaded image for project: 'named-regexp'
  1. REGEX-22

Wrong groups values when pattern contains quoted bracket

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.2
    • Fix Version/s: 0.2.3
    • Labels:
      None
    • Sprint:

      Description

      When the regex pattern contains a \Q-quoted open-bracket (as in example below), the subsequent named-groups return incorrect values.

      \Qxyz [\E(?<foo>abc)(?<bar>def)

      which is equivalent to:

      xyz \[(?<named>abc)(?<bar>def)

      This is caused by the change in 0.2.2 that allows parentheses inside a character-class ( REGEX-20 Closed ).

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                tony19 TonyT
                Reporter:
                tony19 TonyT
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Who's Looking?