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:" |
the whole pattern. Otherwise, it outputs "No match" when the return is |
465 |
followed by the partially matching substring when \fBpcre_exec()\fP returns |
PCRE_ERROR_NOMATCH, and "Partial match:" followed by the partially matching |
466 |
PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL, respectively, and otherwise the PCRE |
substring when \fBpcre_exec()\fP returns PCRE_ERROR_PARTIAL. For any other |
467 |
negative error number. Here is an example of an interactive \fBpcretest\fP run. |
returns, it outputs the PCRE negative error number. Here is an example of an |
468 |
|
interactive \fBpcretest\fP run. |
469 |
.sp |
.sp |
470 |
$ pcretest |
$ pcretest |
471 |
PCRE version 7.0 30-Nov-2006 |
PCRE version 7.0 30-Nov-2006 |
727 |
.rs |
.rs |
728 |
.sp |
.sp |
729 |
.nf |
.nf |
730 |
Last updated: 29 August 2009 |
Last updated: 05 September 2009 |
731 |
Copyright (c) 1997-2009 University of Cambridge. |
Copyright (c) 1997-2009 University of Cambridge. |
732 |
.fi |
.fi |