subpattern in A Sentence

    1

    Defining Subpatterns for use by reference.

    0
    2

    The maximum number of capturing Subpatterns is 65535.

    0
    3

    Assertion Subpatterns are not capturing Subpatterns.

    0
    4

    Consider the same regular expression, but with the Subpattern explicitly named'FOO':.

    0
    5

    To help with this difficulty, PCRE supports the naming of Subpatterns.

    0
    6

    Now consider the same regular expression, but with the Subpattern explicitly named'FOO':.

    0
    7

    In PCRE, a Subpattern can be named in one of three ways:(? …)?

    0
    8

    Atomic groups in general can contain any complicated Subpatterns, and can be nested.

    0
    9

    If there is no such group within the Subpattern,(*THEN) causes the subroutine match to fail.

    0
    10

    But as the Subpattern is named, we can also give its name in the value list::.

    0
    11

    But, as the Subpattern is named, we can also specify its name in the value list:.

    0
    12

    If there is more than one Subpattern with the same name, the earliest one is used.

    0
    13

    A Subpattern that is referenced by name can appear in the pattern before or after the reference.

    0
    14

    A Subpattern that is referenced by name may appear in the pattern before or after the reference.

    0
    15

    Each of the two alternatives can itself contain nested Subpatterns of any form, including conditional Subpatterns;

    0
    16

    If a Subpattern has not been used in a particular match, any back references to it always fails.

    0
    17

    However, when it is inside a Subpattern that is called as a subroutine, only that Subpattern is ended successfully.

    0
    18

    (An alternative way of solving this problem is to use a"branch reset" Subpattern, as described in the previous section.).

    0
    19

    The condition is true if the most recent recursion is into a Subpattern whose number or name is given.

    0
    20

    The condition is true if the most recent recursion is into the Subpattern whose number or name is given.

    0
    21

    The numbers of any capturing parentheses that follow the Subpattern start after the highest number used in any branch.

    0
    22

    In general, Subpatterns that got assigned no value in the match are returned as the tuple{-1,0} when type is index.

    0
    23

    If the condition is the string(DEFINE), and there is no Subpattern with the name DEFINE, the condition is always false.

    0
    24

    For this reason, an error is given at compile time if different names are specified to Subpatterns with the same number.

    0
    25

    (Duplicate names are also always permitted for Subpatterns with the same number, set up as described in the previous section.).

    0
    26

    If the alternatives are within a Subpattern(defined in section Subpatterns),"succeeds" means matching the remaining main pattern and the alternative in the Subpattern.

    0
    27

    You cannot use different names to distinguish between two Subpatterns with the same number because PCRE uses only the numbers when matching.

    0
    28

    You cannot use different names to distinguish between two Subpatterns with the same number, as PCRE uses only the numbers when matching.

    0
    29

    If the alternatives are within a Subpattern(defined below),"succeeds" means matching the rest of the main pattern as well as the alternative in the Subpattern.

    0
    30

    The sequence\g{-1} is a reference to the most recently started capturing Subpattern before\g, that is, it is equivalent to \2 in this example.

    0