From 06e915be138b0638e30083f84cecda0eb1bfc895 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 19 Jun 2018 15:30:22 +0300 Subject: Add regex_replace_match() and rename regex_replace_ex() to regex_replace_search() --- tests/regex/testscript | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/regex/testscript') diff --git a/tests/regex/testscript b/tests/regex/testscript index 4b03e45..d431756 100644 --- a/tests/regex/testscript +++ b/tests/regex/testscript @@ -2,7 +2,7 @@ # copyright : Copyright (c) 2014-2018 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -: match +: replace-search : { $* abcbd b x >axcxd : all @@ -58,3 +58,12 @@ $* xay a '\lVZ' >xvZy } } + +: replace-match +: +{ + test.options += -m + + $* abc 'a(b)c' 'x\1y' >xby : match + $* abcd 'a(b)c' 'x\1yd' == 1 : no-match +} -- cgit v1.1