pcre2_substring_get_bynumber (3) Linux Manual Page
PCRE2 – Perl-compatible regular expressions (revised API)
Synopsis
#include <pcre2.h>
int pcre2_substring_get_bynumber(pcre2_match_data *match_data,
uint32_t number, PCRE2_UCHAR **bufferptr, PCRE2_SIZE *bufflen);
Description
This is a convenience function for extracting a captured substring by number into newly acquired memory. The arguments are:
pcre2_substring_free() can be used to free it when it is no longer needed. The yield of the function is zero for success or one of the following error numbers:
pcre2api page and a description of the POSIX API in the pcre2posix page.
