I'd like to write regular expression syntax for finding php function name:
For example:
public function _c_Def()
{
}
and I like to get:
_c_Def
What I tried:
/function[\s
]+(\S+)[\s
]*\(/
(?:^|
)function ([^\s]+)
But every time I miss something