Test, validate and match regular expressions
Matches invocations of a method named `check` in PHP code, capturing both instance calls via `->` and static calls via `::` before the opening parenthesis. Useful for locating every call site of a specific method when refactoring, auditing validation logic, or tracing function usage across a codebase. With global and multiline flags, it finds all occurrences on every line.