diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-09-18 19:12:35 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-09-18 19:12:35 +0000 |
commit | 20dd865c5c8f10036cda34b9870351b702399c08 (patch) | |
tree | 3a47dd7d7162f12a80b3fc947e16292b067ffa34 /doc/html/pcredemo.html | |
parent | eaa446db0f399010171263221963181144b026e0 (diff) | |
download | pcre-20dd865c5c8f10036cda34b9870351b702399c08.tar.gz |
Add more explanation about recursive subpatterns, and make it possible to
process the documenation without building a whole release.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@453 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'doc/html/pcredemo.html')
-rw-r--r-- | doc/html/pcredemo.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/pcredemo.html b/doc/html/pcredemo.html index 57b4d1d..3978560 100644 --- a/doc/html/pcredemo.html +++ b/doc/html/pcredemo.html @@ -240,12 +240,12 @@ if (namecount <= 0) printf("No named substrings\n"); else * * * If the previous match WAS for an empty string, we can't do that, as it * * would lead to an infinite loop. Instead, a special call of pcre_exec() * -* is made with the PCRE_NOTEMPTY and PCRE_ANCHORED flags set. The first * -* of these tells PCRE that an empty string is not a valid match; other * -* possibilities must be tried. The second flag restricts PCRE to one * -* match attempt at the initial string position. If this match succeeds, * -* an alternative to the empty string match has been found, and we can * -* proceed round the loop. * +* is made with the PCRE_NOTEMPTY_ATSTART and PCRE_ANCHORED flags set. * +* The first of these tells PCRE that an empty string at the start of the * +* subject is not a valid match; other possibilities must be tried. The * +* second flag restricts PCRE to one match attempt at the initial string * +* position. If this match succeeds, an alternative to the empty string * +* match has been found, and we can proceed round the loop. * *************************************************************************/ if (!find_all) @@ -268,7 +268,7 @@ for (;;) if (ovector[0] == ovector[1]) { if (ovector[0] == subject_length) break; - options = PCRE_NOTEMPTY | PCRE_ANCHORED; + options = PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED; } /* Run the next matching operation */ |