| 50 |
<P> |
<P> |
| 51 |
If you are using such a pattern with subject strings that do not contain |
If you are using such a pattern with subject strings that do not contain |
| 52 |
newlines, the best performance is obtained by setting PCRE_DOTALL, or starting |
newlines, the best performance is obtained by setting PCRE_DOTALL, or starting |
| 53 |
the pattern with ^.* to indicate explicit anchoring. That saves PCRE from |
the pattern with ^.* or ^.*? to indicate explicit anchoring. That saves PCRE |
| 54 |
having to scan along the subject looking for a newline to restart at. |
from having to scan along the subject looking for a newline to restart at. |
| 55 |
</P> |
</P> |
| 56 |
<P> |
<P> |
| 57 |
Beware of patterns that contain nested indefinite repeats. These can take a |
Beware of patterns that contain nested indefinite repeats. These can take a |
| 89 |
atomic group or a possessive quantifier. |
atomic group or a possessive quantifier. |
| 90 |
</P> |
</P> |
| 91 |
<P> |
<P> |
| 92 |
Last updated: 09 September 2004 |
Last updated: 28 February 2005 |
| 93 |
<br> |
<br> |
| 94 |
Copyright © 1997-2004 University of Cambridge. |
Copyright © 1997-2005 University of Cambridge. |
| 95 |
<p> |
<p> |
| 96 |
Return to the <a href="index.html">PCRE index page</a>. |
Return to the <a href="index.html">PCRE index page</a>. |
| 97 |
</p> |
</p> |