version 1.1.1.3, 2013/07/22 08:25:57
|
version 1.1.1.4, 2014/06/15 19:46:05
|
Line 126 character of the subject. The algorithm does not autom
|
Line 126 character of the subject. The algorithm does not autom
|
matches that start at later positions. |
matches that start at later positions. |
</P> |
</P> |
<P> |
<P> |
|
PCRE's "auto-possessification" optimization usually applies to character |
|
repeats at the end of a pattern (as well as internally). For example, the |
|
pattern "a\d+" is compiled as if it were "a\d++" because there is no point |
|
even considering the possibility of backtracking into the repeated digits. For |
|
DFA matching, this means that only one possible match is found. If you really |
|
do want multiple matches in such cases, either use an ungreedy repeat |
|
("a\d+?") or set the PCRE_NO_AUTO_POSSESS option when compiling. |
|
</P> |
|
<P> |
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 |
supported by the alternative matching algorithm. They are as follows: |
supported by the alternative matching algorithm. They are as follows: |
</P> |
</P> |
Line 224 Cambridge CB2 3QH, England.
|
Line 233 Cambridge CB2 3QH, England.
|
</P> |
</P> |
<br><a name="SEC8" href="#TOC1">REVISION</a><br> |
<br><a name="SEC8" href="#TOC1">REVISION</a><br> |
<P> |
<P> |
Last updated: 08 January 2012 | Last updated: 12 November 2013 |
<br> |
<br> |
Copyright © 1997-2012 University of Cambridge. |
Copyright © 1997-2012 University of Cambridge. |
<br> |
<br> |