Update regex to proper match a function name.

The previous regex could match strings that were not
actually a function.
Merge pull request #1 from augustohp/master

Update regex to proper match a function name.