Test, validate and match regular expressions
Matches method calls on PHP's $body variable (e.g., $body->methodName) along with the name of the enclosing function, using a \G-anchored continuation trick to chain successive matches within function bodies. A tempered dot ensures matching never crosses into another function declaration or past a closing brace at line start. The final alternation also captures standalone function names. Useful for PHP static analysis, refactoring tools, and extracting object method usage per function.