PCRE_GET_NAMED_SUBSTRING



PCRE_GET_NAMED_SUBSTRING

NAME
SYNOPSIS
DESCRIPTION

NAME

PCRE - Perl-compatible regular expressions

SYNOPSIS

#include <pcre.h>

int pcre_get_named_substring(const pcre *code,
const char *
subject, int *ovector,
int
stringcount, const char *stringname,
const char **
stringptr);

int pcre16_get_named_substring(const pcre16 *code,
PCRE_SPTR16
subject, int *ovector,
int
stringcount, PCRE_SPTR16 stringname,
PCRE_SPTR16 *
stringptr);

int pcre32_get_named_substring(const pcre32 *code,
PCRE_SPTR32
subject, int *ovector,
int
stringcount, PCRE_SPTR32 stringname,
PCRE_SPTR32 *
stringptr);

DESCRIPTION

This is a convenience function for extracting a captured substring by name. The arguments are:

code Compiled pattern
subject
Subject that has been successfully matched
ovector
Offset vector that pcre[16|32]_exec() used
stringcount
Value returned by pcre[16|32]_exec()
stringname
Name of the required substring
stringptr
Where to put the string pointer

The memory in which the substring is placed is obtained by calling pcre[16|32]_malloc(). The convenience function pcre[16|32]_free_substring() can be used to free it when it is no longer needed. The yield of the function is the length of the extracted substring, PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or PCRE_ERROR_NOSUBSTRING if the string name is invalid.

There is a complete description of the PCRE native API in the pcreapi page and a description of the POSIX API in the pcreposix page.




More Linux Commands

manpages/expirerm.8.html
expirerm(8) - Remove articles that have been expired........
expirerm is a script that removes a list of files. The specified file lists the files to be removed. It is usually created by expire -z. This file is sorted, an

manpages/pbmtoln03.1.html
pbmtoln03(1) - convert PBM image to DEC LN03+ Sixel output
This program is part of Netpbm(1) pbmtoln03 reads a PBM image as input and produces a DEC LN03+ Sixel output file. OPTIONS -l nn Use nn as value for left margin

manpages/fesetexceptflag.3.html
fesetexceptflag(3) - floating-point rounding and exception h
These eleven functions were defined in C99, and describe the handling of floating-point rounding and exceptions (overflow, zero-divide, etc.). Exceptions The di

manpages/iconv_open.3.html
iconv_open(3) - allocate descriptor for character set conver
The iconv_open() function allocates a conversion descriptor suitable for converting byte sequences from character encoding fromcode to character encoding tocode

manpages/kdesu.1.html
kdesu(1) - Runs a program with elevated privileges (ManPage)
KDE su is a graphical front end for the UNIX(R)su command for the K Desktop Environment. It allows you to run a program as different user by supplying the passw

manpages/unicode.7.html
unicode(7) - universal character set - Linux manual page....
The international standard ISO 10646 defines the Universal Character Set (UCS). UCS contains all characters of all other character set standards. It also guaran

manpages/perltru64.1.html
perltru64(1) - Perl version 5 on Tru64 (formerly known as Di
This document describes various features of HP s (formerly Compaqs, formerly Digitals) Unix operating system (Tru64) that will affect how Perl version 5 (hereaf

manpages/gnutls_x509_crt_set_basic_constraints.3.html
gnutls_x509_crt_set_basic_constraints(3) - API function.....
This function will set the basicConstraints certificate extension. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. REPOR

manpages/X11::Protocol::Ext::DPMS.3pm.html
X11::Protocol::Ext::DPMS.3pm................................
This module is used to control the DPMS features of compliant monitors. SYMBOLIC CONSTANTS This extension adds the constant type DPMSPowerLevels, with values as

manpages/yaz-config.1.html
yaz-config(1) - Script to get information about YAZ.........
yaz-config is a script that returns information that your own software should use to build software that uses YAZ. The following libraries are supported: thread

manpages/XtGetSubvalues.3.html
XtGetSubvalues(3) - obtain and set widget resources.........
The XtSetValues function starts with the resources specified for the Core widget fields and proceeds down the subclass chain to the widget. At each stage, it wr

manpages/sasl_errdetail.3.html
sasl_errdetail(3) - Retrieve detailed information about an e
sasl_errdetail provides more detailed information about the most recent error to occur, beyond the information contained in the SASL result code. conn the conne





We can't live, work or learn in freedom unless the software we use is free.