From 878c75eb60a06d12e283c6e84b9cc214db2cbad3 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Tue, 18 Nov 2014 15:56:35 +0300 Subject: capture named substrings --- GNUmakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 3557b15..1452ca8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,7 +1,7 @@ MAKE_INCLUDE := -I$(HOME)/src/make-4.1 CFLAGS = -Wall -tests = test001 test002 test003 +tests = test001 test002 test003 test004 -load pcre.so @@ -28,6 +28,9 @@ test002 = '$(m ^t$(var)t$$,test,E)' = test # test for string capturing by number test003 = '$(m ^t(es)t$,test)$0$1' = testtestes -a -z '$(m a,b)$0$1' +# test named string capturing +test004 = '$(m ^t(?es)t$,test)' = test -a '$(var)' = es + ### END OF TEST EXPRESSIONS ### -- cgit v1.2.1