The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5, with just a few differences. PCRE has its own native API and there is a set of wrapper functions that correspond to the POSIX API.