PCRE2_SUBS..._FROM_NAME(3)
π NAME π
okay bestie, welcome to the manual page for PCRE2_SUBS..._FROM_NAME(3) in the Library Functions Manual β itβs giving PCRE2 - Perl-compatible regular expressions (revised API). β¨
π«Ά SYNOPSIS π«Ά
#include <pcre2.h>
int pcre2_substring_number_from_name(const pcre2_code *code,
PCRE2_SPTR name);
πΈ DESCRIPTION πΈ
so this convenience function is literally here to find the number of a named substring capturing parenthesis in a compiled pattern β but only if that name is unique. no cap. π
the function arguments are:
codeβ compiled regular expressionnameβ name whose number is required
the yield of the function is the number of the parenthesis if the name is found, or PCRE2_ERROR_NOSUBSTRING if it is not found. when duplicate names are allowed (PCRE2_DUPNAMES is set), if the name is not unique, PCRE2_ERROR_NOUNIQUESUBSTRING is returned. you can obtain the list of numbers with the same name by calling pcre2_substring_nametable_scan(). π
thereβs a complete description of the PCRE2 native API in the pcre2api page, and a description of the POSIX API in the pcre2posix page. iykyk. π¦
and thatβs the whole page, bestie π
source/version is PCRE2 10.47, dated 03 November 2014, and itβs the PCRE2_SUBS..._FROM_NAME(3) manual page β periodt. π
π¦ where this page comes from
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms