Need a regex here that will take a file line by line and output all of the function names. So for example:
function apples_and_bananas ($params, $arguments) {
print "hello world of yellow and red";
}
And return apples_and_bananas
Using regex so that it runs fast when doing line by line string manipulation.
Unless there is a better way of doing this.
I don’t know how to generate regex it is so complicated and I was never taught it, can you also point to a good document to learn?
This is for c# in a windows form app.
According to the page “Constants” @ php.net, the regex should be:
function\s+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)\s*\(This regex supposed to be correct for almost every language.