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> |
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 © 1997-2012 University of Cambridge. |
Copyright © 1997-2012 University of Cambridge. |
239 |
<br> |
<br> |