version 1.1, 2012/02/21 23:05:52
|
version 1.1.1.2, 2012/02/21 23:50:25
|
Line 13 this program is given in the
|
Line 13 this program is given in the
|
documentation. If you do not have a copy of the PCRE distribution, you can save |
documentation. If you do not have a copy of the PCRE distribution, you can save |
this listing to re-create \fIpcredemo.c\fP. |
this listing to re-create \fIpcredemo.c\fP. |
.P |
.P |
The program compiles the regular expression that is its first argument, and | The demonstration program, which uses the original PCRE 8-bit library, compiles |
matches it against the subject string in its second argument. No PCRE options | the regular expression that is its first argument, and matches it against the |
are set, and default character tables are used. If matching succeeds, the | subject string in its second argument. No PCRE options are set, and default |
program outputs the portion of the subject that matched, together with the | character tables are used. If matching succeeds, the program outputs the |
contents of any captured substrings. | portion of the subject that matched, together with the contents of any captured |
| substrings. |
.P |
.P |
If the -g option is given on the command line, the program then goes on to |
If the -g option is given on the command line, the program then goes on to |
check for further matches of the same regular expression in the same subject |
check for further matches of the same regular expression in the same subject |
Line 55 Note that there is a much more comprehensive test prog
|
Line 56 Note that there is a much more comprehensive test prog
|
.\" HREF |
.\" HREF |
\fBpcretest\fP, |
\fBpcretest\fP, |
.\" |
.\" |
which supports many more facilities for testing regular expressions and the | which supports many more facilities for testing regular expressions and both |
PCRE library. The | PCRE libraries. The |
.\" HREF |
.\" HREF |
\fBpcredemo\fP |
\fBpcredemo\fP |
.\" |
.\" |
Line 93 Cambridge CB2 3QH, England.
|
Line 94 Cambridge CB2 3QH, England.
|
.rs |
.rs |
.sp |
.sp |
.nf |
.nf |
Last updated: 17 November 2010 | Last updated: 10 January 2012 |
Copyright (c) 1997-2010 University of Cambridge. | Copyright (c) 1997-2012 University of Cambridge. |
.fi |
.fi |