Home | History | Annotate | Download | only in doc

Lines Matching full:alternative

50        alternative  function that matches the same compiled patterns in a dif-
51 ferent way. In certain circumstances, the alternative function has some
499 matching. The alternative algorithm finds all possible matches (at a
1204 This option request alternative handling of three escape sequences,
1322 alternative to fail). A pattern such as (\1)(a) succeeds when this
2029 alternative matching function, which is described below in the section
2218 ered to be more important that an alternative complete match.
2942 match at a given position, consider using the alternative matching
2943 function (see below) instead. If you cannot use the alternative func-
2954 MATCHING A PATTERN: THE ALTERNATIVE FUNCTION
3386 pcre2stack documentation.) An alternative approach to recursion that
3445 If you need to create alternative tables when cross compiling, you will
4151 strings, each alternative branch of a lookbehind assertion can match a
4179 (j) The alternative matching function (pcre2_dfa_match() matches in a
4289 diately returns zero. This is an alternative way of testing whether JIT
4693 An alternative algorithm is provided by the pcre2_dfa_match() function;
4710 of them, whereas the alternative algorithm finds all three.
4732 previous branch point in the tree, and tries the next alternative
4751 THE ALTERNATIVE MATCHING ALGORITHM
4796 not supported by the alternative matching algorithm. They are as fol-
4838 these modes, because the alternative algorithm moves through the sub-
4847 ADVANTAGES OF THE ALTERNATIVE ALGORITHM
4849 Using the alternative matching algorithm provides the following advan-
4857 2. Because the alternative algorithm scans the subject string just
4867 DISADVANTAGES OF THE ALTERNATIVE ALGORITHM
4869 The alternative algorithm suffers from a number of disadvantages:
4928 partial match is preferred to an alternative complete match, though the
5006 own partially matches the second alternative.)
5292 first alternative is found at offset 3. There is no partial match for
5293 the second alternative, because such a match does not start at the same
5297 because the start of the second alternative matches within the first
5298 alternative. There is no problem with anchored patterns or patterns
5361 alternative matching function, pcre2_dfa_match(), which matches using a
5364 tages and disadvantages of the alternative function, and how it differs
5551 | start of alternative branch
5788 an alternative syntax for referencing a subpattern as a "subroutine".
6241 alternative in which it appears if the pattern is ever to match that
6342 to calculate the length of the lookbehind. Neither the alternative
6363 parentheses numbers in each alternative (see "Duplicate Subpattern Num-
6582 Vertical bar characters are used to separate alternative patterns. For
6588 appear, and an empty alternative is permitted (matching the empty
6589 string). The matching process tries each alternative in turn, from left
6592 rest of the main pattern as well as the alternative in the subpattern.
6714 match exactly the same set of strings. Because alternative branches are
6723 Perl 5.10 introduced a feature whereby each alternative in a subpattern
6732 you can look at captured substring number one, whichever alternative
6764 An alternative approach to using this "branch reset" feature is to use
6810 match. (An alternative way of solving this problem is to use a "branch
7045 An alternative description is that a subpattern of this type matches
7338 The implementation of lookbehind assertions is, for each alternative,
7417 ditionally or to choose between two alternative subpatterns, depending
7517 there may be only one alternative in the subpattern. It is always
7564 letter is found, the subject is matched against the first alternative;
7679 An alternative approach is to use named parentheses. The Perl syntax
7749 the end of the string, the first alternative fails; the second alterna-
7758 enter the recursion and try the second alternative.) However, if the
7764 This time, the recursing alternative is tried first, and continues to
7766 fails. But this time we do have another alternative to try at the
7768 remaining alternative is at a deeper recursion level, which PCRE2 can-
7816 to match "b", the second alternative matches "a" and then recurses. In
7868 an alternative syntax for referencing a subpattern as a subroutine,
8172 (*PRUNE) is just an alternative to an atomic group or possessive quan-
8215 This verb causes a skip to the next innermost alternative when back-
8217 within the current alternative. Its name comes from the observation
8224 skips to the second alternative and tries COND2, without backtracking
8237 enclosing alternative; it is not a nested alternation with only one
8238 alternative. The effect of (*THEN) extends beyond such a subpattern to
8239 the enclosing alternative. Consider this pattern, where A, B, etc. are
8246 backtrack into A; instead it moves to the next alternative, that is, D.
8247 However, if the subpattern containing (*THEN) is given an alternative,
8269 part of the single alternative that comprises the whole pattern, and so
8275 match at the next alternative. (*PRUNE) comes next, failing the match
8291 (*THEN) causes the next alternative (ABD) to be tried. This behaviour
8323 alternative in the innermost enclosing group that has alternations,
8329 ative assertion to be true, without considering any further alternative
8331 to the next enclosing alternative within the assertion (the normal be-
8332 haviour), but if the assertion does not have such an alternative,
8350 (*THEN) skips to the next alternative in the innermost enclosing group
8461 needs a character's property. If you can find an alternative pattern
9102 back up and try a different alternative after a failure. As matching
9511 capturing groups in each alternative
9748 The use of \C is not supported by the alternative matching function