/[pcre]/code/trunk/doc/pcrematching.3
ViewVC logotype

Diff of /code/trunk/doc/pcrematching.3

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1362 by chpe, Tue Oct 16 15:53:30 2012 UTC revision 1363 by ph10, Tue Oct 1 16:54:40 2013 UTC
# Line 1  Line 1 
1  .TH PCREMATCHING 3 "08 January 2012" "PCRE 8.30"  .TH PCREMATCHING 3 "01 October 2013" "PCRE 8.34"
2  .SH NAME  .SH NAME
3  PCRE - Perl-compatible regular expressions  PCRE - Perl-compatible regular expressions
4  .SH "PCRE MATCHING ALGORITHMS"  .SH "PCRE MATCHING ALGORITHMS"
# Line 106  the three strings "caterpillar", "cater" Line 106  the three strings "caterpillar", "cater"
106  character of the subject. The algorithm does not automatically move on to find  character of the subject. The algorithm does not automatically move on to find
107  matches that start at later positions.  matches that start at later positions.
108  .P  .P
109    PCRE's "auto-possessification" optimization usually applies to character
110    repeats at the end of a pattern (as well as internally). For example, the
111    pattern "a\ed+" is compiled as if it were "a\ed++" because there is no point
112    even considering the possibility of backtracking into the repeated digits. For
113    DFA matching, this means that only one possible match is found. If you really
114    do want multiple matches in such cases, either use an ungreedy repeat
115    ("a\ed+?") or set the PCRE_NO_AUTO_POSSESSIFY option when compiling.
116    .P
117  There are a number of features of PCRE regular expressions that are not  There are a number of features of PCRE regular expressions that are not
118  supported by the alternative matching algorithm. They are as follows:  supported by the alternative matching algorithm. They are as follows:
119  .P  .P
# Line 201  Cambridge CB2 3QH, England. Line 209  Cambridge CB2 3QH, England.
209  .rs  .rs
210  .sp  .sp
211  .nf  .nf
212  Last updated: 08 January 2012  Last updated: 01 October 2013
213  Copyright (c) 1997-2012 University of Cambridge.  Copyright (c) 1997-2012 University of Cambridge.
214  .fi  .fi

Legend:
Removed from v.1362  
changed lines
  Added in v.1363

  ViewVC Help
Powered by ViewVC 1.1.5