/[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 446 by ph10, Sun Sep 13 16:44:49 2009 UTC revision 447 by ph10, Tue Sep 15 18:17:54 2009 UTC
# Line 2155  The following verbs act as soon as they Line 2155  The following verbs act as soon as they
2155  .sp  .sp
2156  This verb causes the match to end successfully, skipping the remainder of the  This verb causes the match to end successfully, skipping the remainder of the
2157  pattern. When inside a recursion, only the innermost pattern is ended  pattern. When inside a recursion, only the innermost pattern is ended
2158  immediately. PCRE differs from Perl in what happens if the (*ACCEPT) is inside  immediately. If the (*ACCEPT) is inside capturing parentheses, the data so far
2159  capturing parentheses. In Perl, the data so far is captured: in PCRE no data is  is captured. (This feature was added to PCRE at release 8.00.) For example:
 captured. For example:  
2160  .sp  .sp
2161    A(A|B(*ACCEPT)|C)D    A((?:A|B(*ACCEPT)|C)D)
2162  .sp  .sp
2163  This matches "AB", "AAD", or "ACD", but when it matches "AB", no data is  This matches "AB", "AAD", or "ACD"; when it matches "AB", "B" is captured by
2164  captured.  the outer parentheses.
2165  .sp  .sp
2166    (*FAIL) or (*F)    (*FAIL) or (*F)
2167  .sp  .sp
# Line 2259  Cambridge CB2 3QH, England. Line 2258  Cambridge CB2 3QH, England.
2258  .rs  .rs
2259  .sp  .sp
2260  .nf  .nf
2261  Last updated: 13 September 2009  Last updated: 15 September 2009
2262  Copyright (c) 1997-2009 University of Cambridge.  Copyright (c) 1997-2009 University of Cambridge.
2263  .fi  .fi

Legend:
Removed from v.446  
changed lines
  Added in v.447

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12