Lines Matching refs:alternative
70 alternative function that matches the same compiled patterns in a dif-
71 ferent way. In certain circumstances, the alternative function has some
1114 mentation.) An alternative approach to recursion that uses memory from
1179 If you need to create alternative tables when cross compiling, you will
1379 An alternative algorithm is provided by the pcre_dfa_exec(),
1381 different way, and are not Perl-compatible. This alternative has advan-
1397 of them, whereas the alternative algorithm finds all three.
1419 previous branch point in the tree, and tries the next alternative
1483 supported by the alternative matching algorithm. They are as follows:
1522 not supported in these modes, because the alternative algorithm moves
1533 Using the alternative matching algorithm provides the following advan-
1541 2. Because the alternative algorithm scans the subject string just
1553 The alternative algorithm suffers from a number of disadvantages:
1765 ing. The alternative algorithm finds all possible matches (at a given
3076 alternative matching function, which is described below in the section
3448 ered to be more important that an alternative complete match.
3570 match "c" and backing up to try the second alternative. The zero
4044 possible match, consider using the alternative matching function (see
4045 below) instead. If you cannot use the alternative function, but still
4675 strings, each alternative branch of a lookbehind assertion can match a
4708 (k) The alternative matching functions (pcre_dfa_exec(),
4743 semantics as closely as it can. PCRE also supports some alternative
4757 pcre[16|32]_exec() (16- or 32-bit), is used. PCRE also has alternative
4761 used. The advantages and disadvantages of the alternative functions,
4928 | start of alternative branch
5167 an alternative syntax for referencing a subpattern as a "subroutine".
5640 alternative in which it appears if the pattern is ever to match that
5741 in each alternative (see "Duplicate Subpattern Numbers" below). The
5966 Vertical bar characters are used to separate alternative patterns. For
5972 appear, and an empty alternative is permitted (matching the empty
5973 string). The matching process tries each alternative in turn, from left
5976 rest of the main pattern as well as the alternative in the subpattern.
6016 in different parts of the pattern. Any changes made in one alternative
6089 match exactly the same set of strings. Because alternative branches are
6098 Perl 5.10 introduced a feature whereby each alternative in a subpattern
6107 you can look at captured substring number one, whichever alternative
6136 An alternative approach to using this "branch reset" feature is to use
6182 match. (An alternative way of solving this problem is to use a "branch
6416 An alternative description is that a subpattern of this type matches
6706 The implementation of lookbehind assertions is, for each alternative,
6785 ditionally or to choose between two alternative subpatterns, depending
6884 there may be only one alternative in the subpattern. It is always
6915 letter is found, the subject is matched against the first alternative;
7015 An alternative approach is to use named parentheses instead. The Perl
7086 the end of the string, the first alternative fails; the second alterna-
7095 enter the recursion and try the second alternative.) However, if the
7101 This time, the recursing alternative is tried first, and continues to
7103 fails. But this time we do have another alternative to try at the
7105 remaining alternative is at a deeper recursion level, which PCRE cannot
7153 to match "b", the second alternative matches "a" and then recurses. In
7205 an alternative syntax for referencing a subpattern as a subroutine,
7476 (*PRUNE) is just an alternative to an atomic group or possessive quan-
7518 This verb causes a skip to the next innermost alternative when back-
7520 within the current alternative. Its name comes from the observation
7527 skips to the second alternative and tries COND2, without backtracking
7539 enclosing alternative; it is not a nested alternation with only one
7540 alternative. The effect of (*THEN) extends beyond such a subpattern to
7541 the enclosing alternative. Consider this pattern, where A, B, etc. are
7548 backtrack into A; instead it moves to the next alternative, that is, D.
7549 However, if the subpattern containing (*THEN) is given an alternative,
7571 part of the single alternative that comprises the whole pattern, and so
7577 match at the next alternative. (*PRUNE) comes next, failing the match
7593 (*THEN) causes the next alternative (ABD) to be tried. This behaviour
7625 alternative in the innermost enclosing group that has alternations,
7631 ative assertion to be true, without considering any further alternative
7633 to the next enclosing alternative within the assertion (the normal be-
7634 haviour), but if the assertion does not have such an alternative,
7652 (*THEN) skips to the next alternative in the innermost enclosing group
7914 capturing groups in each alternative
8252 the alternative matching function pcre[16|32]_dfa_exec(), nor is it
8837 own partially matches the second alternative.)
9157 first alternative is found at offset 3. There is no partial match for
9158 the second alternative, because such a match does not start at the same
9162 because the start of the second alternative matches within the first
9163 alternative. There is no problem with anchored patterns or patterns
9427 needs a character's property. If you can find an alternative pattern
10282 back up and try a different alternative if the first one fails. As