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 |
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 |
|
|