/[pcre]/code/trunk/doc/pcrepattern.3
ViewVC logotype

Diff of /code/trunk/doc/pcrepattern.3

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

revision 628 by ph10, Wed Jul 20 18:03:20 2011 UTC revision 630 by ph10, Fri Jul 22 10:00:10 2011 UTC
# Line 2492  failing negative assertion, they cause a Line 2492  failing negative assertion, they cause a
2492  .P  .P
2493  If any of these verbs are used in an assertion or subroutine subpattern  If any of these verbs are used in an assertion or subroutine subpattern
2494  (including recursive subpatterns), their effect is confined to that subpattern;  (including recursive subpatterns), their effect is confined to that subpattern;
2495  it does not extend to the surrounding pattern. Note that such subpatterns are  it does not extend to the surrounding pattern, with one exception: a *MARK that
2496  processed as anchored at the point where they are tested.  is encountered in a positive assertion \fIis\fP passed back (compare capturing
2497    parentheses in assertions). Note that such subpatterns are processed as
2498    anchored at the point where they are tested.
2499  .P  .P
2500  The new verbs make use of what was previously invalid syntax: an opening  The new verbs make use of what was previously invalid syntax: an opening
2501  parenthesis followed by an asterisk. They are generally of the form  parenthesis followed by an asterisk. They are generally of the form
# Line 2584  indicates which of the two alternatives Line 2586  indicates which of the two alternatives
2586  of obtaining this information than putting each alternative in its own  of obtaining this information than putting each alternative in its own
2587  capturing parentheses.  capturing parentheses.
2588  .P  .P
2589    If (*MARK) is encountered in a positive assertion, its name is recorded and
2590    passed back if it is the last-encountered. This does not happen for negative
2591    assetions.
2592    .P
2593  A name may also be returned after a failed match if the final path through the  A name may also be returned after a failed match if the final path through the
2594  pattern involves (*MARK). However, unless (*MARK) used in conjunction with  pattern involves (*MARK). However, unless (*MARK) used in conjunction with
2595  (*COMMIT), this is unlikely to happen for an unanchored pattern because, as the  (*COMMIT), this is unlikely to happen for an unanchored pattern because, as the
# Line 2755  Cambridge CB2 3QH, England. Line 2761  Cambridge CB2 3QH, England.
2761  .rs  .rs
2762  .sp  .sp
2763  .nf  .nf
2764  Last updated: 20 July 2011  Last updated: 22 July 2011
2765  Copyright (c) 1997-2011 University of Cambridge.  Copyright (c) 1997-2011 University of Cambridge.
2766  .fi  .fi

Legend:
Removed from v.628  
changed lines
  Added in v.630

  ViewVC Help
Powered by ViewVC 1.1.5