Home | History | Annotate | Download | only in html

Lines Matching full:alternative

53 PCRE2 also supports some alternative regular expression syntax (which does not
66 matching function, <b>pcre2_match()</b>, is used. PCRE2 also has an alternative
70 the alternative function, and how it differs from the normal function, are
285 | start of alternative branch
541 a number enclosed either in angle brackets or single quotes, is an alternative
1150 alternatives are involved, but it should be the first thing in each alternative
1260 the length of the lookbehind. Neither the alternative matching function
1282 numbers in each alternative (see
1514 Vertical bar characters are used to separate alternative patterns. For example,
1520 and an empty alternative is permitted (matching the empty string). The matching
1521 process tries each alternative in turn, from left to right, and the first one
1525 alternative in the subpattern.
1567 parts of the pattern. Any changes made in one alternative do carry on
1650 match exactly the same set of strings. Because alternative branches are tried
1657 Perl 5.10 introduced a feature whereby each alternative in a subpattern uses
1666 at captured substring number one, whichever alternative matched. This construct
1700 An alternative approach to using this "branch reset" feature is to use
1749 (An alternative way of solving this problem is to use a "branch reset"
1995 An alternative description is that a subpattern of this type matches exactly
2307 The implementation of lookbehind assertions is, for each alternative, to
2391 conditionally or to choose between two alternative subpatterns, depending on
2423 the condition is true if any of them have matched. An alternative notation is
2501 alternative in the subpattern. It is always skipped if control reaches this
2552 subject is matched against the first alternative; otherwise it is matched
2670 An alternative approach is to use named parentheses. The Perl syntax for this
2744 of the string, the first alternative fails; the second alternative is taken
2754 try the second alternative.) However, if the pattern is written with the
2759 This time, the recursing alternative is tried first, and continues to recurse
2761 time we do have another alternative to try at the higher level. That is the big
2762 difference: in the previous case the remaining alternative is at a deeper
2810 second alternative matches "a" and then recurses. In the recursion, \1 does
2859 a number enclosed either in angle brackets or single quotes, is an alternative
3088 of obtaining this information than putting each alternative in its own
3184 simple cases, the use of (*PRUNE) is just an alternative to an atomic group or
3227 This verb causes a skip to the next innermost alternative when backtracking
3229 alternative. Its name comes from the observation that it can be used for a
3236 second alternative and tries COND2, without backtracking into COND1. If that
3249 enclosing alternative; it is not a nested alternation with only one
3250 alternative. The effect of (*THEN) extends beyond such a subpattern to the
3251 enclosing alternative. Consider this pattern, where A, B, etc. are complex
3257 backtrack into A; instead it moves to the next alternative, that is, D.
3258 However, if the subpattern containing (*THEN) is given an alternative, it
3280 character. The conditional subpattern is part of the single alternative that
3287 next alternative. (*PRUNE) comes next, failing the match at the current
3305 the next alternative (ABD) to be tried. This behaviour is consistent, but is
3342 positive assertion. In particular, (*THEN) skips to the next alternative in the
3350 without considering any further alternative branches in the assertion.
3351 Backtracking into (*THEN) causes it to skip to the next enclosing alternative
3353 such an alternative, (*THEN) behaves like (*PRUNE).
3376 (*THEN) skips to the next alternative in the innermost enclosing group within