Typo in doc and update tests

This commit is contained in:
Philip.Hazel 2019-06-20 16:37:30 +00:00
parent e92f1d3b72
commit 8eb01ad8a9
5 changed files with 35 additions and 7 deletions

View File

@ -1782,7 +1782,7 @@ restart the match with additional subject data by means of the
<b>dfa_restart</b> modifier. For example:
<pre>
re&#62; /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/
data&#62; 23ja\=P,dfa
data&#62; 23ja\=ps,dfa
Partial match: 23ja
data&#62; n05\=dfa,dfa_restart
0: n05
@ -2081,7 +2081,7 @@ Cambridge, England.
</P>
<br><a name="SEC21" href="#TOC1">REVISION</a><br>
<P>
Last updated: 11 June 2019
Last updated: 20 June 2019
<br>
Copyright &copy; 1997-2019 University of Cambridge.
<br>

View File

@ -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

View File

@ -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.

12
testdata/testinput1 vendored
View File

@ -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

16
testdata/testoutput1 vendored
View File

@ -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