I'm a programmer myself but regular expressions give me a headache! :) I need both a match and substitution expression to accomplish the following:
$query_handle = mysql_query("SELECT * FROM table" , $db_handle);
$query_handle = $db_handle->query("SELECT * FROM table");
Naturally the queries could be different. I am replacing in about 300 files so it needs to work well! I will test your regex using regexpal dot com.
Thanks! Please note the budget.