| 36 |
<li><a name="TOC21" href="#SEC21">RECURSIVE PATTERNS</a> |
<li><a name="TOC21" href="#SEC21">RECURSIVE PATTERNS</a> |
| 37 |
<li><a name="TOC22" href="#SEC22">SUBPATTERNS AS SUBROUTINES</a> |
<li><a name="TOC22" href="#SEC22">SUBPATTERNS AS SUBROUTINES</a> |
| 38 |
<li><a name="TOC23" href="#SEC23">CALLOUTS</a> |
<li><a name="TOC23" href="#SEC23">CALLOUTS</a> |
| 39 |
<li><a name="TOC24" href="#SEC24">BACTRACKING CONTROL</a> |
<li><a name="TOC24" href="#SEC24">BACKTRACKING CONTROL</a> |
| 40 |
<li><a name="TOC25" href="#SEC25">SEE ALSO</a> |
<li><a name="TOC25" href="#SEC25">SEE ALSO</a> |
| 41 |
<li><a name="TOC26" href="#SEC26">AUTHOR</a> |
<li><a name="TOC26" href="#SEC26">AUTHOR</a> |
| 42 |
<li><a name="TOC27" href="#SEC27">REVISION</a> |
<li><a name="TOC27" href="#SEC27">REVISION</a> |
| 986 |
<br><a name="SEC11" href="#TOC1">INTERNAL OPTION SETTING</a><br> |
<br><a name="SEC11" href="#TOC1">INTERNAL OPTION SETTING</a><br> |
| 987 |
<P> |
<P> |
| 988 |
The settings of the PCRE_CASELESS, PCRE_MULTILINE, PCRE_DOTALL, and |
The settings of the PCRE_CASELESS, PCRE_MULTILINE, PCRE_DOTALL, and |
| 989 |
PCRE_EXTENDED options can be changed from within the pattern by a sequence of |
PCRE_EXTENDED options (which are Perl-compatible) can be changed from within |
| 990 |
Perl option letters enclosed between "(?" and ")". The option letters are |
the pattern by a sequence of Perl option letters enclosed between "(?" and ")". |
| 991 |
|
The option letters are |
| 992 |
<pre> |
<pre> |
| 993 |
i for PCRE_CASELESS |
i for PCRE_CASELESS |
| 994 |
m for PCRE_MULTILINE |
m for PCRE_MULTILINE |
| 1003 |
unset. |
unset. |
| 1004 |
</P> |
</P> |
| 1005 |
<P> |
<P> |
| 1006 |
|
The PCRE-specific options PCRE_DUPNAMES, PCRE_UNGREEDY, and PCRE_EXTRA can be |
| 1007 |
|
changed in the same way as the Perl-compatible options by using the characters |
| 1008 |
|
J, U and X respectively. |
| 1009 |
|
</P> |
| 1010 |
|
<P> |
| 1011 |
When an option change occurs at top level (that is, not inside subpattern |
When an option change occurs at top level (that is, not inside subpattern |
| 1012 |
parentheses), the change applies to the remainder of the pattern that follows. |
parentheses), the change applies to the remainder of the pattern that follows. |
| 1013 |
If the change is placed right at the start of a pattern, PCRE extracts it into |
If the change is placed right at the start of a pattern, PCRE extracts it into |
| 1031 |
branch is abandoned before the option setting. This is because the effects of |
branch is abandoned before the option setting. This is because the effects of |
| 1032 |
option settings happen at compile time. There would be some very weird |
option settings happen at compile time. There would be some very weird |
| 1033 |
behaviour otherwise. |
behaviour otherwise. |
|
</P> |
|
|
<P> |
|
|
The PCRE-specific options PCRE_DUPNAMES, PCRE_UNGREEDY, and PCRE_EXTRA can be |
|
|
changed in the same way as the Perl-compatible options by using the characters |
|
|
J, U and X respectively. |
|
| 1034 |
<a name="subpattern"></a></P> |
<a name="subpattern"></a></P> |
| 1035 |
<br><a name="SEC12" href="#TOC1">SUBPATTERNS</a><br> |
<br><a name="SEC12" href="#TOC1">SUBPATTERNS</a><br> |
| 1036 |
<P> |
<P> |
| 2055 |
<a href="pcrecallout.html"><b>pcrecallout</b></a> |
<a href="pcrecallout.html"><b>pcrecallout</b></a> |
| 2056 |
documentation. |
documentation. |
| 2057 |
</P> |
</P> |
| 2058 |
<br><a name="SEC24" href="#TOC1">BACTRACKING CONTROL</a><br> |
<br><a name="SEC24" href="#TOC1">BACKTRACKING CONTROL</a><br> |
| 2059 |
<P> |
<P> |
| 2060 |
Perl 5.10 introduced a number of "Special Backtracking Control Verbs", which |
Perl 5.10 introduced a number of "Special Backtracking Control Verbs", which |
| 2061 |
are described in the Perl documentation as "experimental and subject to change |
are described in the Perl documentation as "experimental and subject to change |