Search notes:

Perl regular expressions

character ranges
negative lookahead, negative lookbehind,
Using /e to substitute within matched region.
named groups
Repeating capturing group vs capturing repeating group
Match between
Non capturing groups

See also

perlretut
Perl
regular expressions
The -P flag of grep interprets the given pattern as PCRE (Perl compatible regular expressions) rather than the default of a basic regular expression.
The PHP function prefix pcre_ reminds that these functions use Perl regular expressions.

Index