--- code/trunk/doc/html/pcrepattern.html 2007/09/13 09:20:12 242 +++ code/trunk/doc/html/pcrepattern.html 2007/09/13 09:28:14 243 @@ -36,7 +36,7 @@
  • RECURSIVE PATTERNS
  • SUBPATTERNS AS SUBROUTINES
  • CALLOUTS -
  • BACTRACKING CONTROL +
  • BACKTRACKING CONTROL
  • SEE ALSO
  • AUTHOR
  • REVISION @@ -986,8 +986,9 @@
    INTERNAL OPTION SETTING

    The settings of the PCRE_CASELESS, PCRE_MULTILINE, PCRE_DOTALL, and -PCRE_EXTENDED options can be changed from within the pattern by a sequence of -Perl option letters enclosed between "(?" and ")". The option letters are +PCRE_EXTENDED options (which are Perl-compatible) can be changed from within +the pattern by a sequence of Perl option letters enclosed between "(?" and ")". +The option letters are

       i  for PCRE_CASELESS
       m  for PCRE_MULTILINE
    @@ -1002,6 +1003,11 @@
     unset.
     

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

    +

    When an option change occurs at top level (that is, not inside subpattern parentheses), the change applies to the remainder of the pattern that follows. If the change is placed right at the start of a pattern, PCRE extracts it into @@ -1025,11 +1031,6 @@ branch is abandoned before the option setting. This is because the effects of option settings happen at compile time. There would be some very weird behaviour otherwise. -

    -

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


    SUBPATTERNS

    @@ -2054,7 +2055,7 @@ pcrecallout documentation.

    -
    BACTRACKING CONTROL
    +
    BACKTRACKING CONTROL

    Perl 5.10 introduced a number of "Special Backtracking Control Verbs", which are described in the Perl documentation as "experimental and subject to change