1 .TH PCRE_GET_STRINGNUMBER 3 "24 June 2012" "PCRE 8.30"
3 PCRE - Perl-compatible regular expressions
10 .B int pcre_get_stringnumber(const pcre *\fIcode\fP,
11 .B " const char *\fIname\fP);"
13 .B int pcre16_get_stringnumber(const pcre16 *\fIcode\fP,
14 .B " PCRE_SPTR16 \fIname\fP);"
16 .B int pcre32_get_stringnumber(const pcre32 *\fIcode\fP,
17 .B " PCRE_SPTR32 \fIname\fP);"
23 This convenience function finds the number of a named substring capturing
24 parenthesis in a compiled pattern. Its arguments are:
26 \fIcode\fP Compiled regular expression
27 \fIname\fP Name whose number is required
29 The yield of the function is the number of the parenthesis if the name is
30 found, or PCRE_ERROR_NOSUBSTRING otherwise. When duplicate names are allowed
31 (PCRE_DUPNAMES is set), it is not defined which of the numbers is returned by
32 \fBpcre[16|32]_get_stringnumber()\fP. You can obtain the complete list by calling
33 \fBpcre[16|32]_get_stringtable_entries()\fP.
35 There is a complete description of the PCRE native API in the
39 page and a description of the POSIX API in the