Build, test, and debug regular expressions
This regex matches calls to `widget.method` and captures the first string argument passed to it, accommodating optional spaces and both single or double quotes. It's specifically designed for extracting method names or identifiers used in widget configurations or function calls within JavaScript code. Using the global flag, it can find all such occurrences in a given text. This is useful for code analysis, linting, or extracting specific method invocations.