1PCRE_GET_STRINGNUMBER(3)   Library Functions Manual   PCRE_GET_STRINGNUMBER(3)
2
3
4

NAME

6       PCRE - Perl-compatible regular expressions
7

SYNOPSIS

9
10       #include <pcre.h>
11
12       int pcre_get_stringnumber(const pcre *code,
13            const char *name);
14

DESCRIPTION

16
17       This convenience function finds the number of a named substring capturā€
18       ing parenthesis in a compiled pattern. Its arguments are:
19
20         code    Compiled regular expression
21         name    Name whose number is required
22
23       The yield of the function is the number of the parenthesis if the  name
24       is found, or PCRE_ERROR_NOSUBSTRING otherwise. When duplicate names are
25       allowed (PCRE_DUPNAMES is set), it is not defined which of the  numbers
26       is  returned  by  pcre_get_stringnumber().  You can obtain the complete
27       list by calling pcre_get_stringtable_entries().
28
29       There is a complete description of the PCRE native API in  the  pcreapi
30       page and a description of the POSIX API in the pcreposix page.
31
32
33
34                                                      PCRE_GET_STRINGNUMBER(3)
Impressum