diff options
Diffstat (limited to 'doc/pcre2test.1')
-rw-r--r-- | doc/pcre2test.1 | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/doc/pcre2test.1 b/doc/pcre2test.1 index 4a7a91c..22743f6 100644 --- a/doc/pcre2test.1 +++ b/doc/pcre2test.1 @@ -1,4 +1,4 @@ -.TH PCRE2TEST 1 "14 September 2015" "PCRE 10.21" +.TH PCRE2TEST 1 "22 September 2015" "PCRE 10.21" .SH NAME pcre2test - a program for testing Perl-compatible regular expressions. .SH SYNOPSIS @@ -472,7 +472,7 @@ can add to or override default modifiers that were set by a previous The following modifiers set options for \fBpcre2_compile()\fP. The most common ones have single-letter abbreviations. See .\" HREF -\fBpcreapi\fP +\fBpcre2api\fP .\" for a description of their effects. .sp @@ -500,6 +500,7 @@ for a description of their effects. no_utf_check set PCRE2_NO_UTF_CHECK ucp set PCRE2_UCP ungreedy set PCRE2_UNGREEDY + use_offset_limit set PCRE2_USE_OFFSET_LIMIT utf set PCRE2_UTF .sp As well as turning on the PCRE2_UTF option, the \fButf\fP modifier causes all @@ -892,9 +893,10 @@ pattern. /g global global matching jitstack=<n> set size of JIT stack mark show mark values - match_limit=>n> set a match limit + match_limit=<n> set a match limit memory show memory usage offset=<n> set starting offset + offset_limit=<n> set offset limit ovector=<n> set size of output vector recursion_limit=<n> set a recursion limit replace=<string> specify a replacement string @@ -1133,6 +1135,16 @@ The \fBoffset\fP modifier sets an offset in the subject string at which matching starts. Its value is a number of code units, not characters. . . +.SS "Setting an offset limit" +.rs +.sp +The \fBoffset_limit\fP modifier sets a limit for unanchored matches. If a match +cannot be found starting at or before this offset in the subject, a "no match" +return is given. The data value is a number of code units, not characters. When +this modifier is used, the \fBuse_offset_limit\fP modifier must have been set +for the pattern; if not, an error is generated. +. +. .SS "Setting the size of the output vector" .rs .sp @@ -1525,6 +1537,6 @@ Cambridge, England. .rs .sp .nf -Last updated: 14 September 2015 +Last updated: 22 September 2015 Copyright (c) 1997-2015 University of Cambridge. .fi |