| 35 |
.P |
.P |
| 36 |
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 |
| 37 |
newlines, the best performance is obtained by setting PCRE_DOTALL, or starting |
newlines, the best performance is obtained by setting PCRE_DOTALL, or starting |
| 38 |
the pattern with ^.* to indicate explicit anchoring. That saves PCRE from |
the pattern with ^.* or ^.*? to indicate explicit anchoring. That saves PCRE |
| 39 |
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. |
| 40 |
.P |
.P |
| 41 |
Beware of patterns that contain nested indefinite repeats. These can take a |
Beware of patterns that contain nested indefinite repeats. These can take a |
| 42 |
long time to run when applied to a string that does not match. Consider the |
long time to run when applied to a string that does not match. Consider the |
| 71 |
atomic group or a possessive quantifier. |
atomic group or a possessive quantifier. |
| 72 |
.P |
.P |
| 73 |
.in 0 |
.in 0 |
| 74 |
Last updated: 09 September 2004 |
Last updated: 28 February 2005 |
| 75 |
.br |
.br |
| 76 |
Copyright (c) 1997-2004 University of Cambridge. |
Copyright (c) 1997-2005 University of Cambridge. |