Test, validate and match regular expressions
This PCRE2 regex extracts the hook names from WordPress `do_action` and `apply_filters` functions. It specifically avoids matching Gravity Forms' `gf_apply_filters` using a negative lookbehind. The pattern captures the function call and the first quoted string argument, which represents the action or filter hook name. It is highly useful for developers analyzing a WordPress codebase to quickly audit, list, or document all registered hooks.