pcre2compat (3) Linux Manual Page
PCRE2 – Perl-compatible regular expressions (revised API)
Differences Between Pcre2 And Perl
This document describes the differences in the ways that PCRE2 and Perl handle regular expressions. The differences described here are with respect to Perl versions 5.26, but as both Perl and PCRE2 are continually changing, the information may sometimes be out of date.
1. PCRE2 has only a subset of Perl’s Unicode support. Details of what it does have are given in the pcre2unicode page.
2. Like Perl, PCRE2 allows repeat quantifiers on parenthesized assertions, but they do not mean what you might think. For example, (?!a){3} does not assert that the next three characters are not "a". It just asserts that the next character is not "a" three times (in principle; PCRE2 optimizes this to run the assertion just once). Perl allows some repeat quantifiers on other assertions, for example, * (but not {3}), but these do not seem to have any use.
3. Capture groups that occur inside negative lookaround assertions are counted, but their entries in the offsets vector are set only when a negative assertion is a condition that has a matching branch (that is, the condition is false).
4. The following Perl escape sequences are not supported: \F, \l, \L,
