| 819 |
|
|
| 820 |
PCRE_INFO_LASTLITERAL |
PCRE_INFO_LASTLITERAL |
| 821 |
|
|
| 822 |
For a non-anchored pattern, return the value of the right- |
Return the value of the rightmost literal byte that must |
| 823 |
most literal byte which must exist in any matched string, |
exist in any matched string, other than at its start, if |
| 824 |
other than at its start. The fourth argument should point to |
such a byte has been recorded. The fourth argument should |
| 825 |
an int variable. If there is no such byte, or if the pattern |
point to an int variable. If there is no such byte, -1 is |
| 826 |
is anchored, -1 is returned. For example, for the pattern |
returned. For anchored patterns, a last literal byte is |
| 827 |
/a\d+z\d+/ the returned value is 'z'. |
recorded only if it follows something of variable length. |
| 828 |
|
For example, for the pattern /^a\d+z\d+/ the returned value |
| 829 |
|
is "z", but for /^a\dz\d/ the returned value is -1. |
| 830 |
|
|
| 831 |
PCRE_INFO_NAMECOUNT |
PCRE_INFO_NAMECOUNT |
| 832 |
PCRE_INFO_NAMEENTRYSIZE |
PCRE_INFO_NAMEENTRYSIZE |
| 1129 |
there are no capturing subpatterns, the return value from a |
there are no capturing subpatterns, the return value from a |
| 1130 |
successful match is 1, indicating that just the first pair |
successful match is 1, indicating that just the first pair |
| 1131 |
of offsets has been set. |
of offsets has been set. |
| 1132 |
|
|
| 1133 |
Some convenience functions are provided for extracting the |
Some convenience functions are provided for extracting the |
| 1134 |
captured substrings as separate strings. These are described |
captured substrings as separate strings. These are described |
| 1135 |
in the following section. |
in the following section. |
| 1233 |
int pcre_get_substring_list(const char *subject, |
int pcre_get_substring_list(const char *subject, |
| 1234 |
int *ovector, int stringcount, const char ***listptr); |
int *ovector, int stringcount, const char ***listptr); |
| 1235 |
|
|
|
|
|
| 1236 |
Captured substrings can be accessed directly by using the |
Captured substrings can be accessed directly by using the |
| 1237 |
offsets returned by pcre_exec() in ovector. For convenience, |
offsets returned by pcre_exec() in ovector. For convenience, |
| 1238 |
the functions pcre_copy_substring(), pcre_get_substring(), |
the functions pcre_copy_substring(), pcre_get_substring(), |