| 551 |
.sp |
.sp |
| 552 |
PCRE_JAVASCRIPT_COMPAT |
PCRE_JAVASCRIPT_COMPAT |
| 553 |
.sp |
.sp |
| 554 |
If this option is set, PCRE's behaviour is changed in some ways so that it is |
If this option is set, PCRE's behaviour is changed in some ways so that it is |
| 555 |
compatible with JavaScript rather than Perl. The changes are as follows: |
compatible with JavaScript rather than Perl. The changes are as follows: |
| 556 |
.P |
.P |
| 557 |
(1) A lone closing square bracket in a pattern causes a compile-time error, |
(1) A lone closing square bracket in a pattern causes a compile-time error, |
| 559 |
character). Thus, the pattern AB]CD becomes illegal when this option is set. |
character). Thus, the pattern AB]CD becomes illegal when this option is set. |
| 560 |
.P |
.P |
| 561 |
(2) At run time, a back reference to an unset subpattern group matches an empty |
(2) At run time, a back reference to an unset subpattern group matches an empty |
| 562 |
string (by default this causes the current matching path to fail). A pattern |
string (by default this causes the current matching alternative to fail). A |
| 563 |
such as (\1)(a) succeeds when this option is set (assuming it can find an "a" |
pattern such as (\e1)(a) succeeds when this option is set (assuming it can find |
| 564 |
in the subject), whereas it fails by default, for Perl compatibility. |
an "a" in the subject), whereas it fails by default, for Perl compatibility. |
| 565 |
.sp |
.sp |
| 566 |
PCRE_MULTILINE |
PCRE_MULTILINE |
| 567 |
.sp |
.sp |
| 731 |
54 DEFINE group contains more than one branch |
54 DEFINE group contains more than one branch |
| 732 |
55 repeating a DEFINE group is not allowed |
55 repeating a DEFINE group is not allowed |
| 733 |
56 inconsistent NEWLINE options |
56 inconsistent NEWLINE options |
| 734 |
57 \eg is not followed by a braced, angle-bracketed, or quoted |
57 \eg is not followed by a braced, angle-bracketed, or quoted |
| 735 |
name/number or by a plain number |
name/number or by a plain number |
| 736 |
58 a numbered reference must not be zero |
58 a numbered reference must not be zero |
| 737 |
59 (*VERB) with an argument is not supported |
59 (*VERB) with an argument is not supported |
| 738 |
60 (*VERB) not recognized |
60 (*VERB) not recognized |