361 |
\eOdd set the size of the output vector passed to |
\eOdd set the size of the output vector passed to |
362 |
\fBpcre_exec()\fP to dd (any number of digits) |
\fBpcre_exec()\fP to dd (any number of digits) |
363 |
.\" JOIN |
.\" JOIN |
364 |
\eP pass the PCRE_PARTIAL option to \fBpcre_exec()\fP |
\eP pass the PCRE_PARTIAL_SOFT option to \fBpcre_exec()\fP |
365 |
or \fBpcre_dfa_exec()\fP |
or \fBpcre_dfa_exec()\fP; if used twice, pass the |
366 |
|
PCRE_PARTIAL_HARD option |
367 |
.\" JOIN |
.\" JOIN |
368 |
\eQdd set the PCRE_MATCH_LIMIT_RECURSION limit to dd |
\eQdd set the PCRE_MATCH_LIMIT_RECURSION limit to dd |
369 |
(any number of digits) |
(any number of digits) |
461 |
.P |
.P |
462 |
When a match succeeds, pcretest outputs the list of captured substrings that |
When a match succeeds, pcretest outputs the list of captured substrings that |
463 |
\fBpcre_exec()\fP returns, starting with number 0 for the string that matched |
\fBpcre_exec()\fP returns, starting with number 0 for the string that matched |
464 |
the whole pattern. Otherwise, it outputs "No match" or "Partial match" followed |
the whole pattern. Otherwise, it outputs "No match" or "Partial match:" |
465 |
by the partially matching substring when \fBpcre_exec()\fP returns |
followed by the partially matching substring when \fBpcre_exec()\fP returns |
466 |
PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL, respectively, and otherwise the PCRE |
PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL, respectively, and otherwise the PCRE |
467 |
negative error number. Here is an example of an interactive \fBpcretest\fP run. |
negative error number. Here is an example of an interactive \fBpcretest\fP run. |
468 |
.sp |
.sp |
545 |
2: tan |
2: tan |
546 |
.sp |
.sp |
547 |
(Using the normal matching function on this data finds only "tang".) The |
(Using the normal matching function on this data finds only "tang".) The |
548 |
longest matching string is always given first (and numbered zero). |
longest matching string is always given first (and numbered zero). After a |
549 |
|
PCRE_ERROR_PARTIAL return, the output is "Partial match:", followed by the |
550 |
|
partially matching substring. |
551 |
.P |
.P |
552 |
If \fB/g\fP is present on the pattern, the search for further matches resumes |
If \fB/g\fP is present on the pattern, the search for further matches resumes |
553 |
at the end of the longest match. For example: |
at the end of the longest match. For example: |
726 |
.rs |
.rs |
727 |
.sp |
.sp |
728 |
.nf |
.nf |
729 |
Last updated: 25 August 2009 |
Last updated: 29 August 2009 |
730 |
Copyright (c) 1997-2009 University of Cambridge. |
Copyright (c) 1997-2009 University of Cambridge. |
731 |
.fi |
.fi |