Lines Matching full:alternative
13 PCRE2 also supports some alternative regular expression syntax (which does not
24 matching function, \fBpcre2_match()\fP, is used. PCRE2 also has an alternative
28 the alternative function, and how it differs from the normal function, are
262 | start of alternative branch
529 a number enclosed either in angle brackets or single quotes, is an alternative
1152 alternatives are involved, but it should be the first thing in each alternative
1260 the length of the lookbehind. Neither the alternative matching function
1280 numbers in each alternative (see
1510 Vertical bar characters are used to separate alternative patterns. For example,
1516 and an empty alternative is permitted (matching the empty string). The matching
1517 process tries each alternative in turn, from left to right, and the first one
1524 alternative in the subpattern.
1565 parts of the pattern. Any changes made in one alternative do carry on
1647 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
1701 An alternative approach to using this "branch reset" feature is to use
1758 (An alternative way of solving this problem is to use a "branch reset"
2000 An alternative description is that a subpattern of this type matches exactly
2319 The implementation of lookbehind assertions is, for each alternative, to
2408 conditionally or to choose between two alternative subpatterns, depending on
2442 the condition is true if any of them have matched. An alternative notation is
2520 alternative in the subpattern. It is always skipped if control reaches this
2574 subject is matched against the first alternative; otherwise it is matched
2700 An alternative approach is to use named parentheses. The Perl syntax for this
2772 of the string, the first alternative fails; the second alternative is taken
2781 try the second alternative.) However, if the pattern is written with the
2786 This time, the recursing alternative is tried first, and continues to recurse
2788 time we do have another alternative to try at the higher level. That is the big
2789 difference: in the previous case the remaining alternative is at a deeper
2834 second alternative matches "a" and then recurses. In the recursion, \e1 does
2887 a number enclosed either in angle brackets or single quotes, is an alternative
3131 of obtaining this information than putting each alternative in its own
3224 simple cases, the use of (*PRUNE) is just an alternative to an atomic group or
3265 This verb causes a skip to the next innermost alternative when backtracking
3267 alternative. Its name comes from the observation that it can be used for a
3274 second alternative and tries COND2, without backtracking into COND1. If that
3285 enclosing alternative; it is not a nested alternation with only one
3286 alternative. The effect of (*THEN) extends beyond such a subpattern to the
3287 enclosing alternative. Consider this pattern, where A, B, etc. are complex
3293 backtrack into A; instead it moves to the next alternative, that is, D.
3294 However, if the subpattern containing (*THEN) is given an alternative, it
3315 character. The conditional subpattern is part of the single alternative that
3321 next alternative. (*PRUNE) comes next, failing the match at the current
3339 the next alternative (ABD) to be tried. This behaviour is consistent, but is
3376 positive assertion. In particular, (*THEN) skips to the next alternative in the
3383 without considering any further alternative branches in the assertion.
3384 Backtracking into (*THEN) causes it to skip to the next enclosing alternative
3386 such an alternative, (*THEN) behaves like (*PRUNE).
3406 (*THEN) skips to the next alternative in the innermost enclosing group within