1 |
<html>
|
2 |
<head>
|
3 |
<title>pcre_get_stringnumber specification</title>
|
4 |
</head>
|
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>
|
9 |
<br><b>
|
10 |
SYNOPSIS
|
11 |
</b><br>
|
12 |
<P>
|
13 |
<b>#include <pcre.h></b>
|
14 |
</P>
|
15 |
<P>
|
16 |
<b>int pcre_get_stringnumber(const pcre *<i>code</i>,</b>
|
17 |
<b>const char *<i>name</i>);</b>
|
18 |
</P>
|
19 |
<br><b>
|
20 |
DESCRIPTION
|
21 |
</b><br>
|
22 |
<P>
|
23 |
This convenience function finds the number of a named substring capturing
|
24 |
parenthesis in a compiled pattern. Its arguments are:
|
25 |
</P>
|
26 |
<P>
|
27 |
<pre>
|
28 |
<i>code</i> Compiled regular expression
|
29 |
<i>name</i> Name whose number is required
|
30 |
</PRE>
|
31 |
</P>
|
32 |
<P>
|
33 |
The yield of the function is the number of the parenthesis if the name is
|
34 |
found, or PCRE_ERROR_NOSUBSTRING otherwise.
|
35 |
</P>
|
36 |
<P>
|
37 |
There is a complete description of the PCRE API in the
|
38 |
<a href="pcreapi.html"><b>pcreapi</b></a>
|
39 |
page.
|