I have to search for a string inside another string, and replace it. However, I must base this on a trend. This trend is (with the quotes!)

"*.php*"

I would like to change that to

"http://www.mysite.com/*.php*"

Basically, I'd like to find any instances of double-quoted strings containing php and add http://www.mysite.com/ into the start of the inside. Is there any good way to do this?