Perl-compatible Regular Expressions (revised API: PCRE2)

The HTML documentation 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.

  Introductory page
  Information about the installation configuration
  PCRE2's native API
  Building PCRE2
  The callout facility
  Compability with Perl
  Experimental foreign pattern conversion functions
  A demonstration C program that uses the PCRE2 library
  The pcre2grep command
  Discussion of the just-in-time optimization support
  Details of size and other limits
  Discussion of the two matching algorithms
  Using PCRE2 for partial matching
  Specification of the regular expressions supported by PCRE2
  Some comments on performance
  The POSIX API to the PCRE2 8-bit library
  Discussion of the pcre2demo program
  Serializing functions for saving precompiled patterns
  Syntax quick-reference summary
  The pcre2test command for testing PCRE2
  Discussion 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.

  Enumerate callouts in a compiled pattern
  Copy a compiled pattern
  Copy a compiled pattern and its character tables
  Free a compiled pattern
  Compile a regular expression pattern
  Copy a compile context
  Create a compile context
  Free a compile context
  Show build-time configuration options
  Copy a convert context
  Create a convert context
  Free a convert context
  Free converted foreign pattern
  Match a compiled pattern to a subject string (DFA algorithm; not Perl compatible)
  Copy a general context
  Create a general context
  Free a general context
  Free study data
  Get a (*MARK) name
  Get the ovector count
  Get a pointer to the ovector
  Get the starting character offset
  Process a compiled pattern with the JIT compiler
  Free unused JIT memory
  Fast path interface to JIT matching
  Assign stack for JIT matching
  Create a stack for JIT matching
  Free a JIT matching stack
  Build character tables in current locale
  Match a compiled pattern to a subject string (Perl compatible)
  Copy a match context
  Create a match context
  Free a match context
  Create a match data block
  Create a match data block getting size from pattern
  Free a match data block
  Experimental foreign pattern converter
  Extract information about a pattern
  Decode serialized compiled patterns
  Serialize compiled patterns for save/restore
  Free serialized compiled patterns
  Get number of serialized compiled patterns
  Set \R convention
  Set up a callout function
  Set character tables
  Set compile time extra options
  Set up a compile recursion guard function
  Set the match backtracking depth limit
  Set glob escape character
  Set glob separator character
  Set the match backtracking heap limit
  Set the match limit
  Set the maximum length of pattern
  Set the newline convention
  Set the offset limit
  Set the parentheses nesting limit
  Obsolete: use pcre2_set_depth_limit
  Obsolete function that (from 10.30 onwards) does nothing
  Match a compiled pattern to a subject string and do substitutions
  Extract named substring into given buffer
  Extract numbered substring into given buffer
  Free extracted substring
  Extract named substring into new memory
  Extract numbered substring into new memory
  Find length of named substring
  Find length of numbered substring
  Free list of extracted substrings
  Extract all substrings into new memory
  Find table entries for given string name
  Convert captured string name to number