3
<title>pcre_copy_named_substring specification</title>
5
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6
This HTML document has been generated automatically from the original man page.
7
If there is any nonsense in it, please consult the man page, in case the
8
conversion went wrong.<br>
13
<b>#include <pcre.h></b>
16
<b>int pcre_copy_named_substring(const pcre *<i>code</i>,</b>
17
<b>const char *<i>subject</i>, int *<i>ovector</i>,</b>
18
<b>int <i>stringcount</i>, const char *<i>stringname</i>,</b>
19
<b>char *<i>buffer</i>, int <i>buffersize</i>);</b>
25
This is a convenience function for extracting a captured substring, identified
26
by name, into a given buffer. The arguments are:
30
<i>code</i> Pattern that was successfully matched
31
<i>subject</i> Subject that has been successfully matched
32
<i>ovector</i> Offset vector that <b>pcre_exec()</b> used
33
<i>stringcount</i> Value returned by <b>pcre_exec()</b>
34
<i>stringname</i> Name of the required substring
35
<i>buffer</i> Buffer to receive the string
36
<i>buffersize</i> Size of buffer
40
The yield is the length of the substring, PCRE_ERROR_NOMEMORY if the buffer was
41
too small, or PCRE_ERROR_NOSUBSTRING if the string name is invalid.
44
There is a complete description of the PCRE API in the
45
<a href="pcreapi.html"><b>pcreapi</b></a>