Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6965

non-captured group \2 in regexp_replace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.11
    • Fix Version/s: 10.0.15
    • Component/s: OTHER
    • Labels:

      Description

      select regexp_replace('1 foo and bar', '(\\d+) foo and (\\d+ )?bar', '\\1 this and \\2that')

      expected result: 1 this and that
      actual result: 1 this and 2that

        Attachments

          Activity

            People

            Assignee:
            bar Alexander Barkov
            Reporter:
            julian.ladisch Julian Ladisch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration