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