matches a function signature and extracts the function name and the contents of the parenthesis as match groups