| 135 |
The functions \fBpcre_compile()\fP, \fBpcre_compile2()\fP, \fBpcre_study()\fP, |
The functions \fBpcre_compile()\fP, \fBpcre_compile2()\fP, \fBpcre_study()\fP, |
| 136 |
and \fBpcre_exec()\fP are used for compiling and matching regular expressions |
and \fBpcre_exec()\fP are used for compiling and matching regular expressions |
| 137 |
in a Perl-compatible manner. A sample program that demonstrates the simplest |
in a Perl-compatible manner. A sample program that demonstrates the simplest |
| 138 |
way of using them is provided in the file called \fIpcredemo.c\fP in the source |
way of using them is provided in the file called \fIpcredemo.c\fP in the PCRE |
| 139 |
distribution. The |
source distribution. A listing of this program is given in the |
| 140 |
|
.\" HREF |
| 141 |
|
\fBpcredemo\fP |
| 142 |
|
.\" |
| 143 |
|
documentation, and the |
| 144 |
.\" HREF |
.\" HREF |
| 145 |
\fBpcresample\fP |
\fBpcresample\fP |
| 146 |
.\" |
.\" |
| 1331 |
matching a null string by first trying the match again at the same offset with |
matching a null string by first trying the match again at the same offset with |
| 1332 |
PCRE_NOTEMPTY and PCRE_ANCHORED, and then if that fails by advancing the |
PCRE_NOTEMPTY and PCRE_ANCHORED, and then if that fails by advancing the |
| 1333 |
starting offset (see below) and trying an ordinary match again. There is some |
starting offset (see below) and trying an ordinary match again. There is some |
| 1334 |
code that demonstrates how to do this in the \fIpcredemo.c\fP sample program. |
code that demonstrates how to do this in the |
| 1335 |
|
.\" HREF |
| 1336 |
|
\fBpcredemo\fP |
| 1337 |
|
.\" |
| 1338 |
|
sample program. |
| 1339 |
.sp |
.sp |
| 1340 |
PCRE_NO_START_OPTIMIZE |
PCRE_NO_START_OPTIMIZE |
| 1341 |
.sp |
.sp |
| 2011 |
.rs |
.rs |
| 2012 |
.sp |
.sp |
| 2013 |
.nf |
.nf |
| 2014 |
Last updated: 29 August 2009 |
Last updated: 01 September 2009 |
| 2015 |
Copyright (c) 1997-2009 University of Cambridge. |
Copyright (c) 1997-2009 University of Cambridge. |
| 2016 |
.fi |
.fi |