I am trying to write a regular expression in .NET to capture the whole function from a list of functions that look something like this.