From 8eb01ad8a9318252e0a0649c187066c57a904648 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Thu, 20 Jun 2019 16:37:30 +0000 Subject: [PATCH] Typo in doc and update tests --- doc/html/pcre2test.html | 4 ++-- doc/pcre2test.1 | 6 +++--- doc/pcre2test.txt | 4 ++-- testdata/testinput1 | 12 ++++++++++++ testdata/testoutput1 | 16 ++++++++++++++++ 5 files changed, 35 insertions(+), 7 deletions(-) diff --git a/doc/html/pcre2test.html b/doc/html/pcre2test.html index 986bb07..0adae4c 100644 --- a/doc/html/pcre2test.html +++ b/doc/html/pcre2test.html @@ -1782,7 +1782,7 @@ restart the match with additional subject data by means of the dfa_restart modifier. For example:
     re> /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/
-  data> 23ja\=P,dfa
+  data> 23ja\=ps,dfa
   Partial match: 23ja
   data> n05\=dfa,dfa_restart
    0: n05
@@ -2081,7 +2081,7 @@ Cambridge, England.
 


REVISION

-Last updated: 11 June 2019 +Last updated: 20 June 2019
Copyright © 1997-2019 University of Cambridge.
diff --git a/doc/pcre2test.1 b/doc/pcre2test.1 index 7b87210..104a099 100644 --- a/doc/pcre2test.1 +++ b/doc/pcre2test.1 @@ -1,4 +1,4 @@ -.TH PCRE2TEST 1 "11 June 2019" "PCRE 10.34" +.TH PCRE2TEST 1 "20 June 2019" "PCRE 10.34" .SH NAME pcre2test - a program for testing Perl-compatible regular expressions. .SH SYNOPSIS @@ -1748,7 +1748,7 @@ restart the match with additional subject data by means of the \fBdfa_restart\fP modifier. For example: .sp re> /^\ed?\ed(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\ed\ed$/ - data> 23ja\e=P,dfa + data> 23ja\e=ps,dfa Partial match: 23ja data> n05\e=dfa,dfa_restart 0: n05 @@ -2062,6 +2062,6 @@ Cambridge, England. .rs .sp .nf -Last updated: 11 June 2019 +Last updated: 20 June 2019 Copyright (c) 1997-2019 University of Cambridge. .fi diff --git a/doc/pcre2test.txt b/doc/pcre2test.txt index 5f77503..282a947 100644 --- a/doc/pcre2test.txt +++ b/doc/pcre2test.txt @@ -1612,7 +1612,7 @@ RESTARTING AFTER A PARTIAL MATCH dfa_restart modifier. For example: re> /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/ - data> 23ja\=P,dfa + data> 23ja\=ps,dfa Partial match: 23ja data> n05\=dfa,dfa_restart 0: n05 @@ -1893,5 +1893,5 @@ AUTHOR REVISION - Last updated: 11 June 2019 + Last updated: 20 June 2019 Copyright (c) 1997-2019 University of Cambridge. diff --git a/testdata/testinput1 b/testdata/testinput1 index 4d9ec5a..c018e8b 100644 --- a/testdata/testinput1 +++ b/testdata/testinput1 @@ -6365,4 +6365,16 @@ ef) x/x,mark /(?(DEFINE)(a|ab))(?1){1}+c/ abc +/(?:a|(?=b)|.)*\z/ + abc + +/(?:a|(?=b)|.)*/ + abc + +/(?<=a(*SKIP)x)|c/ + abcd + +/(?<=a(*SKIP)x)|d/ + abcd + # End of testinput1 diff --git a/testdata/testoutput1 b/testdata/testoutput1 index fffb8ec..a0623eb 100644 --- a/testdata/testoutput1 +++ b/testdata/testoutput1 @@ -10081,4 +10081,20 @@ No match abc No match +/(?:a|(?=b)|.)*\z/ + abc + 0: abc + +/(?:a|(?=b)|.)*/ + abc + 0: a + +/(?<=a(*SKIP)x)|c/ + abcd +No match + +/(?<=a(*SKIP)x)|d/ + abcd + 0: d + # End of testinput1