diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-06-26 08:23:47 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-06-26 08:23:47 +0000 |
commit | 29d1e2521ac05f63981a6d956ac3a6d49407fde6 (patch) | |
tree | fc4dbb29929dc264cf3901b3e9edd9762dae6050 /doc/html/pcre2test.html | |
parent | 364b0dfa5be62734ea830de6ce8eb9cdb497e545 (diff) | |
download | pcre2-29d1e2521ac05f63981a6d956ac3a6d49407fde6.tar.gz |
Make pcre2test show actual pre-match consulted characters for a partial match,
not the length of the longest lookbehind. Control this by "allusedtext".
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1122 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'doc/html/pcre2test.html')
-rw-r--r-- | doc/html/pcre2test.html | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/doc/html/pcre2test.html b/doc/html/pcre2test.html index 0adae4c..5cf16d5 100644 --- a/doc/html/pcre2test.html +++ b/doc/html/pcre2test.html @@ -1252,22 +1252,27 @@ following line with a plus character following the capture number. </P> <P> The <b>allusedtext</b> modifier requests that all the text that was consulted -during a successful pattern match by the interpreter should be shown. This -feature is not supported for JIT matching, and if requested with JIT it is -ignored (with a warning message). Setting this modifier affects the output if -there is a lookbehind at the start of a match, or a lookahead at the end, or if -\K is used in the pattern. Characters that precede or follow the start and end -of the actual match are indicated in the output by '<' or '>' characters -underneath them. Here is an example: +during a successful pattern match by the interpreter should be shown, for both +full and partial matches. This feature is not supported for JIT matching, and +if requested with JIT it is ignored (with a warning message). Setting this +modifier affects the output if there is a lookbehind at the start of a match, +or, for a complete match, a lookahead at the end, or if \K is used in the +pattern. Characters that precede or follow the start and end of the actual +match are indicated in the output by '<' or '>' characters underneath them. +Here is an example: <pre> re> /(?<=pqr)abc(?=xyz)/ data> 123pqrabcxyz456\=allusedtext 0: pqrabcxyz <<< >>> + data> 123pqrabcxy\=ph,allusedtext + Partial match: pqrabcxy + <<< </pre> -This shows that the matched string is "abc", with the preceding and following -strings "pqr" and "xyz" having been consulted during the match (when processing -the assertions). +The first, complete match shows that the matched string is "abc", with the +preceding and following strings "pqr" and "xyz" having been consulted during +the match (when processing the assertions). The partial match can indicate only +the preceding string. </P> <P> The <b>startchar</b> modifier requests that the starting character for the match @@ -2081,7 +2086,7 @@ Cambridge, England. </P> <br><a name="SEC21" href="#TOC1">REVISION</a><br> <P> -Last updated: 20 June 2019 +Last updated: 26 June 2019 <br> Copyright © 1997-2019 University of Cambridge. <br> |