pcre2_pattern_info (3) - Linux Manuals
pcre2_pattern_info: Perl-compatible regular expressions (revised API)
Command to display pcre2_pattern_info
manual in Linux: $ man 3 pcre2_pattern_info
NAME
PCRE2 - Perl-compatible regular expressions (revised API)
SYNOPSIS
#include <pcre2.h>
int pcre2_pattern_info(const pcre2_code *code, uint32_t what,
void *where);
DESCRIPTION
This function returns information about a compiled pattern. Its arguments are:
code Pointer to a compiled regular expression pattern
what What information is required
where Where to put the information
The recognized values for the what argument, and the information they
request are as follows:
PCRE2_INFO_ALLOPTIONS Final options after compiling
PCRE2_INFO_ARGOPTIONS Options passed to pcre2_compile()
PCRE2_INFO_BACKREFMAX Number of highest backreference
PCRE2_INFO_BSR What \R matches:
PCRE2_BSR_UNICODE: Unicode line endings
PCRE2_BSR_ANYCRLF: CR, LF, or CRLF only
PCRE2_INFO_CAPTURECOUNT Number of capturing subpatterns
PCRE2_INFO_DEPTHLIMIT Backtracking depth limit if set,
otherwise PCRE2_ERROR_UNSET
PCRE2_INFO_EXTRAOPTIONS Extra options that were passed in the
compile context
PCRE2_INFO_FIRSTBITMAP Bitmap of first code units, or NULL
PCRE2_INFO_FIRSTCODETYPE Type of start-of-match information
0 nothing set
1 first code unit is set