Lines Matching full:alternative
13 also supports some alternative regular expression syntax (which does not
25 (16- or 32-bit), is used. PCRE also has alternative matching functions,
29 disadvantages of the alternative functions, and how they differ from the normal
233 | start of alternative branch
486 a number enclosed either in angle brackets or single quotes, is an alternative
1121 alternatives are involved, but it should be the first thing in each alternative
1224 alternative (see
1458 Vertical bar characters are used to separate alternative patterns. For example,
1464 and an empty alternative is permitted (matching the empty string). The matching
1465 process tries each alternative in turn, from left to right, and the first one
1472 alternative in the subpattern.
1512 parts of the pattern. Any changes made in one alternative do carry on
1587 match exactly the same set of strings. Because alternative branches are tried
1597 Perl 5.10 introduced a feature whereby each alternative in a subpattern uses
1606 at captured substring number one, whichever alternative matched. This construct
1638 An alternative approach to using this "branch reset" feature is to use
1695 (An alternative way of solving this problem is to use a "branch reset"
1937 An alternative description is that a subpattern of this type matches the string
2252 The implementation of lookbehind assertions is, for each alternative, to
2340 conditionally or to choose between two alternative subpatterns, depending on
2373 the condition is true if any of them have matched. An alternative notation is
2448 alternative in the subpattern. It is always skipped if control reaches this
2483 subject is matched against the first alternative; otherwise it is matched
2591 An alternative approach is to use named parentheses instead. The Perl syntax
2664 of the string, the first alternative fails; the second alternative is taken
2673 try the second alternative.) However, if the pattern is written with the
2678 This time, the recursing alternative is tried first, and continues to recurse
2680 time we do have another alternative to try at the higher level. That is the big
2681 difference: in the previous case the remaining alternative is at a deeper
2726 second alternative matches "a" and then recurses. In the recursion, \e1 does
2779 a number enclosed either in angle brackets or single quotes, is an alternative
2987 of obtaining this information than putting each alternative in its own
3081 simple cases, the use of (*PRUNE) is just an alternative to an atomic group or
3121 This verb causes a skip to the next innermost alternative when backtracking
3123 alternative. Its name comes from the observation that it can be used for a
3130 second alternative and tries COND2, without backtracking into COND1. If that
3140 enclosing alternative; it is not a nested alternation with only one
3141 alternative. The effect of (*THEN) extends beyond such a subpattern to the
3142 enclosing alternative. Consider this pattern, where A, B, etc. are complex
3148 backtrack into A; instead it moves to the next alternative, that is, D.
3149 However, if the subpattern containing (*THEN) is given an alternative, it
3170 character. The conditional subpattern is part of the single alternative that
3176 next alternative. (*PRUNE) comes next, failing the match at the current
3194 the next alternative (ABD) to be tried. This behaviour is consistent, but is
3230 positive assertion. In particular, (*THEN) skips to the next alternative in the
3237 without considering any further alternative branches in the assertion.
3238 Backtracking into (*THEN) causes it to skip to the next enclosing alternative
3240 such an alternative, (*THEN) behaves like (*PRUNE).
3260 (*THEN) skips to the next alternative in the innermost enclosing group within