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

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

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

revision 49 by nigel, Sat Feb 24 21:39:33 2007 UTC revision 51 by nigel, Sat Feb 24 21:39:37 2007 UTC
# Line 1245  to the string Line 1245  to the string
1245    
1246    /* first command */  not comment  /* second comment */    /* first command */  not comment  /* second comment */
1247    
1248  fails, because it matches the entire string due to the greediness of the .*  fails, because it matches the entire string owing to the greediness of the .*
1249  item.  item.
1250    
1251  However, if a quantifier is followed by a question mark, it ceases to be  However, if a quantifier is followed by a question mark, it ceases to be
# Line 1564  subpattern, a compile-time error occurs. Line 1564  subpattern, a compile-time error occurs.
1564    
1565  There are two kinds of condition. If the text between the parentheses consists  There are two kinds of condition. If the text between the parentheses consists
1566  of a sequence of digits, the condition is satisfied if the capturing subpattern  of a sequence of digits, the condition is satisfied if the capturing subpattern
1567  of that number has previously matched. Consider the following pattern, which  of that number has previously matched. The number must be greater than zero.
1568  contains non-significant white space to make it more readable (assume the  Consider the following pattern, which contains non-significant white space to
1569  PCRE_EXTENDED option) and to divide it into three parts for ease of discussion:  make it more readable (assume the PCRE_EXTENDED option) and to divide it into
1570    three parts for ease of discussion:
1571    
1572    ( \\( )?    [^()]+    (?(1) \\) )    ( \\( )?    [^()]+    (?(1) \\) )
1573    

Legend:
Removed from v.49  
changed lines
  Added in v.51

  ViewVC Help
Powered by ViewVC 1.1.5