| 13 |
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 |
| 14 |
this listing to re-create \fIpcredemo.c\fP. |
this listing to re-create \fIpcredemo.c\fP. |
| 15 |
.P |
.P |
| 16 |
The program compiles the regular expression that is its first argument, and |
The demonstration program, which uses the original PCRE 8-bit library, compiles |
| 17 |
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 |
| 18 |
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 |
| 19 |
program outputs the portion of the subject that matched, together with the |
character tables are used. If matching succeeds, the program outputs the |
| 20 |
contents of any captured substrings. |
portion of the subject that matched, together with the contents of any captured |
| 21 |
|
substrings. |
| 22 |
.P |
.P |
| 23 |
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 |
| 24 |
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 |
| 56 |
.\" HREF |
.\" HREF |
| 57 |
\fBpcretest\fP, |
\fBpcretest\fP, |
| 58 |
.\" |
.\" |
| 59 |
which supports many more facilities for testing regular expressions and the |
which supports many more facilities for testing regular expressions and both |
| 60 |
PCRE library. The |
PCRE libraries. The |
| 61 |
.\" HREF |
.\" HREF |
| 62 |
\fBpcredemo\fP |
\fBpcredemo\fP |
| 63 |
.\" |
.\" |
| 94 |
.rs |
.rs |
| 95 |
.sp |
.sp |
| 96 |
.nf |
.nf |
| 97 |
Last updated: 17 November 2010 |
Last updated: 10 January 2012 |
| 98 |
Copyright (c) 1997-2010 University of Cambridge. |
Copyright (c) 1997-2012 University of Cambridge. |
| 99 |
.fi |
.fi |