| 603 |
|
|
| 604 |
.*/foo |
.*/foo |
| 605 |
|
|
| 606 |
is matched against the string "/foo/this/is/not" then after the initial greedy |
is matched against the string "/this/string/is/not" then after the greedy .* |
| 607 |
.* has swallowed the whole string, it keeps backtracking right the way to the |
has swallowed the whole string, PCRE keeps backtracking all the way to the |
| 608 |
beginning before failing. If, on the other hand, the expression is |
beginning before failing. If, on the other hand, the expression is |
| 609 |
|
|
| 610 |
.*/\\Xfoo |
.*/\\Xfoo |
| 866 |
which matches one digit by preference, but can match two if that is the only |
which matches one digit by preference, but can match two if that is the only |
| 867 |
way the rest of the pattern matches. |
way the rest of the pattern matches. |
| 868 |
|
|
| 869 |
When a parenthesized subpattern is quantified a with minimum repeat count that |
When a parenthesized subpattern is quantified with a minimum repeat count that |
| 870 |
is greater than 1 or with a limited maximum, more store is required for the |
is greater than 1 or with a limited maximum, more store is required for the |
| 871 |
compiled pattern, in proportion to the size of the minimum or maximum. |
compiled pattern, in proportion to the size of the minimum or maximum. |
| 872 |
|
|
| 924 |
normally causes the repeated item to be re-evaluated to see if a different |
normally causes the repeated item to be re-evaluated to see if a different |
| 925 |
number of repeats allows the rest of the pattern to match. Sometimes it is |
number of repeats allows the rest of the pattern to match. Sometimes it is |
| 926 |
useful to prevent this, either to change the nature of the match, or to cause |
useful to prevent this, either to change the nature of the match, or to cause |
| 927 |
it fail earlier than it otherwise might when the author or the pattern knows |
it fail earlier than it otherwise might when the author of the pattern knows |
| 928 |
there is no point in carrying on. |
there is no point in carrying on. |
| 929 |
|
|
| 930 |
Consider, for example, the pattern \\d+foo when applied to the subject line |
Consider, for example, the pattern \\d+foo when applied to the subject line |