Test, validate and match regular expressions
Matches JavaScript/TypeScript-style API calls like `this.api(123).method<Type>(args);`, capturing four groups: the numeric ID, method name, generic type parameter (angle brackets), and the call arguments. Useful for static code analysis, extracting or rewriting typed API invocations from source code, with case-insensitive matching for flexibility.