Using PHP.
I have an html document on a variable, I want to look inside this code for all instances of the img tag, and prepend some text to its src attribute, I want to avoid using client side code like javascript and let php handle all the heavy lifting, I was thinking of using regular expressions to do this, like find all instances of <img [ ]* src="
, Im not very savy on regex as you can see, how can I achieve this?
Thanks!