Test, validate and match regular expressions
Matches JavaScript function declarations with named capture groups for function name, arguments (including optional TypeScript return types), and body with up to 6 levels of nested curly braces. Designed for converting traditional function declarations to arrow function syntax during code refactoring or migration tasks.