Test, validate and match regular expressions
This regex matches TypeScript CommonJS-style import statements of the form `import * as <name> from '<module>'` (or with double quotes), capturing the leading indentation, the imported namespace name, and the module path. It is designed for use in code transformations that convert such namespace imports to ECMAScript default imports, e.g., `import <name> from '<module>'`. The pattern handles both single and double quoted module specifiers and respects line boundaries, making it suitable for multi-line file processing with the global and multiline flags.