File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ any kind of quantifier on non-lookaround assertions.
34
34
.P
35
35
4. If a braced quantifier such as {1,2} appears where there is nothing to
36
36
repeat (for example, at the start of a branch), PCRE2 raises an error whereas
37
- Perl treats the quantifier characters as literal.
37
+ Perl treats the quantifier characters as literal. When a braced quantifier
38
+ (...){min,max} has min > max, Perl treats it as an item which fails to match
39
+ any portion of the subject (as no number of repetitions can meet the
40
+ condition), and additionally issues a warning when in warning mode. PCRE2 has
41
+ no warning features, so it gives an error in this case.
38
42
.P
39
43
5. Capture groups that occur inside negative lookaround assertions are counted,
40
44
but their entries in the offsets vector are set only when a negative assertion
You can’t perform that action at this time.
0 commit comments