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

regexp_replace + not greedy

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.0.28
    • N/A
    • OTHER
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.