| 1 |
.TH PCRE 3 |
.TH PCREAPI 3 |
| 2 |
.SH NAME |
.SH NAME |
| 3 |
PCRE - Perl-compatible regular expressions |
PCRE - Perl-compatible regular expressions |
| 4 |
.SH "PCRE NATIVE API" |
.SH "PCRE NATIVE API" |
| 1416 |
To extract a substring by name, you first have to find associated number. |
To extract a substring by name, you first have to find associated number. |
| 1417 |
For example, for this pattern |
For example, for this pattern |
| 1418 |
.sp |
.sp |
| 1419 |
(a+)b(?<xxx>\ed+)... |
(a+)b(?P<xxx>\ed+)... |
| 1420 |
.sp |
.sp |
| 1421 |
the number of the subpattern called "xxx" is 2. You can find the number from |
the number of the subpattern called "xxx" is 2. You can find the number from |
| 1422 |
the name by calling \fBpcre_get_stringnumber()\fP. The first argument is the |
the name by calling \fBpcre_get_stringnumber()\fP. The first argument is the |