Test, validate and match regular expressions
This regex is used to extract directive names from AngularJS code by matching the `.directive()` method call and capturing the string argument inside. It supports both single and double quotes for the directive name and is useful for static analysis, documentation generation, or code refactoring tasks.