Manual pages

The reference manual for PCRE2 consists of a number of pages that are listed below in alphabetical order. If you are new to PCRE2, please read the first one first.

pcre2Introductory page
pcre2-configInformation about the installation configuration
pcre2apiPCRE2's native API
pcre2buildBuilding PCRE2
pcre2calloutThe callout facility
pcre2compatCompability with Perl
pcre2convertExperimental foreign pattern conversion functions
pcre2demoA demonstration C program that uses the PCRE2 library
pcre2grepThe pcre2grep command
pcre2jitDiscussion of the just-in-time optimization support
pcre2limitsDetails of size and other limits
pcre2matchingDiscussion of the two matching algorithms
pcre2partialUsing PCRE2 for partial matching
pcre2patternSpecification of the regular expressions supported by PCRE2
pcre2performSome comments on performance
pcre2posixThe POSIX API to the PCRE2 8-bit library
pcre2sampleDiscussion of the pcre2demo program
pcre2serializeSerializing functions for saving precompiled patterns
pcre2syntaxSyntax quick-reference summary
pcre2testThe pcre2test command for testing PCRE2
pcre2unicodeDiscussion of Unicode and UTF-8/UTF-16/UTF-32 support

There are also individual pages that summarize the interface for each function in the library.

pcre2_callout_enumerateEnumerate callouts in a compiled pattern
pcre2_code_copyCopy a compiled pattern
pcre2_code_copy_with_tablesCopy a compiled pattern and its character tables
pcre2_code_freeFree a compiled pattern
pcre2_compileCompile a regular expression pattern
pcre2_compile_context_copyCopy a compile context
pcre2_compile_context_createCreate a compile context
pcre2_compile_context_freeFree a compile context
pcre2_configShow build-time configuration options
pcre2_convert_context_copyCopy a convert context
pcre2_convert_context_createCreate a convert context
pcre2_convert_context_freeFree a convert context
pcre2_converted_pattern_freeFree converted foreign pattern
pcre2_dfa_matchMatch a compiled pattern to a subject string (DFA algorithm; not Perl compatible)
pcre2_general_context_copyCopy a general context
pcre2_general_context_createCreate a general context
pcre2_general_context_freeFree a general context
pcre2_get_error_messageGet textual error message for error number
pcre2_get_markGet a (*MARK) name
pcre2_get_match_data_sizeGet the size of a match data block
pcre2_get_ovector_countGet the ovector count
pcre2_get_ovector_pointerGet a pointer to the ovector
pcre2_get_startcharGet the starting character offset
pcre2_jit_compileProcess a compiled pattern with the JIT compiler
pcre2_jit_free_unused_memoryFree unused JIT memory
pcre2_jit_matchFast path interface to JIT matching
pcre2_jit_stack_assignAssign stack for JIT matching
pcre2_jit_stack_createCreate a stack for JIT matching
pcre2_jit_stack_freeFree a JIT matching stack
pcre2_maketablesBuild character tables in current locale
pcre2_maketables_freeFree character tables
pcre2_matchMatch a compiled pattern to a subject string (Perl compatible)
pcre2_match_context_copyCopy a match context
pcre2_match_context_createCreate a match context
pcre2_match_context_freeFree a match context
pcre2_match_data_createCreate a match data block
pcre2_match_data_create_from_patternCreate a match data block getting size from pattern
pcre2_match_data_freeFree a match data block
pcre2_pattern_convertExperimental foreign pattern converter
pcre2_pattern_infoExtract information about a pattern
pcre2_serialize_decodeDecode serialized compiled patterns
pcre2_serialize_encodeSerialize compiled patterns for save/restore
pcre2_serialize_freeFree serialized compiled patterns
pcre2_serialize_get_number_of_codesGet number of serialized compiled patterns
pcre2_set_bsrSet \R convention
pcre2_set_calloutSet up a callout function
pcre2_set_character_tablesSet character tables
pcre2_set_compile_extra_optionsSet compile time extra options
pcre2_set_compile_recursion_guardSet up a compile recursion guard function
pcre2_set_depth_limitSet the match backtracking depth limit
pcre2_set_glob_escapeSet glob escape character
pcre2_set_glob_separatorSet glob separator character
pcre2_set_heap_limitSet the match backtracking heap limit
pcre2_set_match_limitSet the match limit
pcre2_set_max_pattern_compiled_lengthSet the maximum length of a compiled pattern
pcre2_set_max_pattern_lengthSet the maximum length of a pattern
pcre2_set_max_varlookbehindSet the maximum match length for a variable-length lookbehind
pcre2_set_newlineSet the newline convention
pcre2_set_offset_limitSet the offset limit
pcre2_set_optimizeSet an optimization directive
pcre2_set_parens_nest_limitSet the parentheses nesting limit
pcre2_set_recursion_limitObsolete: use pcre2_set_depth_limit
pcre2_set_recursion_memory_managementObsolete function that (from 10.30 onwards) does nothing
pcre2_set_substitute_calloutSet a substitution callout function
pcre2_set_substitute_case_calloutSet a substitution case callout function
pcre2_substituteMatch a compiled pattern to a subject string and do substitutions
pcre2_substring_copy_bynameExtract named substring into given buffer
pcre2_substring_copy_bynumberExtract numbered substring into given buffer
pcre2_substring_freeFree extracted substring
pcre2_substring_get_bynameExtract named substring into new memory
pcre2_substring_get_bynumberExtract numbered substring into new memory
pcre2_substring_length_bynameFind length of named substring
pcre2_substring_length_bynumberFind length of numbered substring
pcre2_substring_list_freeFree list of extracted substrings
pcre2_substring_list_getExtract all substrings into new memory
pcre2_substring_nametable_scanFind table entries for given string name
pcre2_substring_number_from_nameConvert captured string name to number