Test, validate and match regular expressions
This regex matches exported JavaScript functions or arrow functions that have a parenthesized parameter list and a block body. It captures the export prefix, parameter list, and function body, enabling automated transformations like inserting 'ngInject;' into the body for AngularJS dependency injection. Useful for bulk code mods and linting tools.