Regular Expressions for matching functions in javascript source code?

Is there any way to match a function block in javascript source code using regular expressions?

(Really I’m trying to find the opposite of that, but I figured this would be a good place to start.)

Regular Expressions for matching functions in javascript source code?