| 318 |
positive number) the offset back to the matching bracket opcode. |
positive number) the offset back to the matching bracket opcode. |
| 319 |
|
|
| 320 |
If a subpattern is quantified such that it is permitted to match zero times, it |
If a subpattern is quantified such that it is permitted to match zero times, it |
| 321 |
is preceded by one of OP_BRAZERO or OP_BRAMINZERO. These are single-byte |
is preceded by one of OP_BRAZERO, OP_BRAMINZERO, or OP_SKIPZERO. These are |
| 322 |
opcodes which tell the matcher that skipping this subpattern entirely is a |
single-byte opcodes that tell the matcher that skipping the following |
| 323 |
valid branch. |
subpattern entirely is a valid branch. In the case of the first two, not |
| 324 |
|
skipping the pattern is also valid (greedy and non-greedy). The third is used |
| 325 |
|
when a pattern has the quantifier {0,0}. It cannot be entirely discarded, |
| 326 |
|
because it may be called as a subroutine from elsewhere in the regex. |
| 327 |
|
|
| 328 |
A subpattern with an indefinite maximum repetition is replicated in the |
A subpattern with an indefinite maximum repetition is replicated in the |
| 329 |
compiled data its minimum number of times (or once with OP_BRAZERO if the |
compiled data its minimum number of times (or once with OP_BRAZERO if the |
| 414 |
data. |
data. |
| 415 |
|
|
| 416 |
Philip Hazel |
Philip Hazel |
| 417 |
August 2007 |
April 2008 |