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

regexp_replace + not greedy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.0.28
    • Fix Version/s: N/A
    • Component/s: OTHER
    • Labels:
      None
    • Environment:
      fedora fc23 mariadb

      Description

      The expression:

      SELECT REGEXP_REPLACE('Season 8, 12/12. ','.*([0-9]+)/[0-9]+.*','\\1');
      

      Should return "12", but now returns "2" (as in ungreedy eval.)

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            dagnygren Dag Nygren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: