Test, validate and match regular expressions
Matches Bash function declarations by capturing lines containing a function name followed by parentheses. It allows for optional whitespace around the parentheses but doesn't match the function body itself. Useful for finding or extracting function definitions in shell scripts.