| 107 |
page. |
page. |
| 108 |
</P> |
</P> |
| 109 |
<P> |
<P> |
| 110 |
11. If (*THEN) is present in a group that is called as a subroutine, its action |
11. If any of the backtracking control verbs are used in an assertion or in a |
| 111 |
is limited to that group, even if the group does not contain any | characters. |
subpattern that is called as a subroutine (whether or not recursively), their |
| 112 |
|
effect is confined to that subpattern; it does not extend to the surrounding |
| 113 |
|
pattern. This is not always the case in Perl. In particular, if (*THEN) is |
| 114 |
|
present in a group that is called as a subroutine, its action is limited to |
| 115 |
|
that group, even if the group does not contain any | characters. There is one |
| 116 |
|
exception to this: the name from a *(MARK), (*PRUNE), or (*THEN) that is |
| 117 |
|
encountered in a successful positive assertion <i>is</i> passed back when a |
| 118 |
|
match succeeds (compare capturing parentheses in assertions). Note that such |
| 119 |
|
subpatterns are processed as anchored at the point where they are tested. |
| 120 |
</P> |
</P> |
| 121 |
<P> |
<P> |
| 122 |
12. There are some differences that are concerned with the settings of captured |
12. There are some differences that are concerned with the settings of captured |
| 137 |
<P> |
<P> |
| 138 |
14. Perl recognizes comments in some places that PCRE does not, for example, |
14. Perl recognizes comments in some places that PCRE does not, for example, |
| 139 |
between the ( and ? at the start of a subpattern. If the /x modifier is set, |
between the ( and ? at the start of a subpattern. If the /x modifier is set, |
| 140 |
Perl allows whitespace between ( and ? but PCRE never does, even if the |
Perl allows white space between ( and ? but PCRE never does, even if the |
| 141 |
PCRE_EXTENDED option is set. |
PCRE_EXTENDED option is set. |
| 142 |
</P> |
</P> |
| 143 |
<P> |
<P> |
| 211 |
REVISION |
REVISION |
| 212 |
</b><br> |
</b><br> |
| 213 |
<P> |
<P> |
| 214 |
Last updated: 08 Januray 2012 |
Last updated: 01 June 2012 |
| 215 |
<br> |
<br> |
| 216 |
Copyright © 1997-2012 University of Cambridge. |
Copyright © 1997-2012 University of Cambridge. |
| 217 |
<br> |
<br> |