Add replace_regex to not ignore the regex in "$var /regex/val/"

This commit is contained in:
Daniel Black 2017-04-13 16:14:21 +10:00
commit d59b94e7fd
3 changed files with 55 additions and 27 deletions

View file

@ -2084,9 +2084,11 @@ drop table t1;
--let $patt= /a /b / /less/more/
--replace_regex $patt
select "a is a and less is more" as txt;
--replace_regex $patt /and /or /
select "a is a and less is more" as txt2;
--let $patt=
--replace_regex $patt
select "a is a and less is more" as txt;
select "a is a and less is more" as txt3;
--enable_query_log
#