I'm trying to create a regexp to capture the first parameter and the delimiting comma of a php function.
e.g. ereg(<anything I might expect here>, param2, ...)
I currently have ... CODE,[/CODE]
Is there any eventuality I have missed - can it be improved?
Thanks for any advice.
Note: I am aware that ereg() and similar functions are deprecated, but I am trying to create a script to search for and modify such functions with their preg equivalent.