/[pcre]/code/tags/pcre-1.08/pcre.3
ViewVC logotype

Diff of /code/tags/pcre-1.08/pcre.3

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by nigel, Sat Feb 24 21:38:01 2007 UTC revision 9 by nigel, Sat Feb 24 21:38:13 2007 UTC
# Line 603  operation from backtracking past it. For Line 603  operation from backtracking past it. For
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
# Line 866  own right. Because it has two uses, it c Line 866  own right. Because it has two uses, it c
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    
# Line 924  With both maximizing and minimizing repe Line 924  With both maximizing and minimizing repe
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

Legend:
Removed from v.3  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.5