mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-6965 non-captured group \2 in regexp_replace
This commit is contained in:
@ -397,3 +397,8 @@ SET default_regex_flags='UNGREEDY';
|
||||
SELECT REGEXP_SUBSTR('abc','.+');
|
||||
SELECT REGEXP_REPLACE('abc','^(.*)(.*)$','\\1/\\2');
|
||||
SET default_regex_flags=DEFAULT;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-6965 non-captured group \2 in regexp_replace
|
||||
--echo #
|
||||
SELECT REGEXP_REPLACE('1 foo and bar', '(\\d+) foo and (\\d+ )?bar', '\\1 this and \\2that');
|
||||
|
Reference in New Issue
Block a user