Regex, match "private function", "public function" or just "function"
- by M28
I am getting some problems while trying to use this regex:
(public +function|private +function|function) +
For some reason, $1 and $2 are returning the same value.
How can I fix that? By the way, I am using Javascript