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

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

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

revision 1403 by ph10, Wed Oct 31 17:42:29 2012 UTC revision 1404 by ph10, Tue Nov 19 15:36:57 2013 UTC
# Line 126  character of the subject. The algorithm Line 126  character of the subject. The algorithm
126  matches that start at later positions.  matches that start at later positions.
127  </P>  </P>
128  <P>  <P>
129    PCRE's "auto-possessification" optimization usually applies to character
130    repeats at the end of a pattern (as well as internally). For example, the
131    pattern "a\d+" is compiled as if it were "a\d++" because there is no point
132    even considering the possibility of backtracking into the repeated digits. For
133    DFA matching, this means that only one possible match is found. If you really
134    do want multiple matches in such cases, either use an ungreedy repeat
135    ("a\d+?") or set the PCRE_NO_AUTO_POSSESS option when compiling.
136    </P>
137    <P>
138  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
139  supported by the alternative matching algorithm. They are as follows:  supported by the alternative matching algorithm. They are as follows:
140  </P>  </P>
# Line 224  Cambridge CB2 3QH, England. Line 233  Cambridge CB2 3QH, England.
233  </P>  </P>
234  <br><a name="SEC8" href="#TOC1">REVISION</a><br>  <br><a name="SEC8" href="#TOC1">REVISION</a><br>
235  <P>  <P>
236  Last updated: 08 January 2012  Last updated: 12 November 2013
237  <br>  <br>
238  Copyright &copy; 1997-2012 University of Cambridge.  Copyright &copy; 1997-2012 University of Cambridge.
239  <br>  <br>

Legend:
Removed from v.1403  
changed lines
  Added in v.1404

  ViewVC Help
Powered by ViewVC 1.1.5