how I get the img code from a text?
Now I get the code and URL if the tag looks like: text text <img src = "image.gif" />, but if the code is <img src = "image.gif" target = _blank />, then I get the URL: "image.gif" target = _blank.
So, how correctly find img full code and URL?
Thanks
preg_match_all('/\<img src = (.*?)\/>/', $input, $all_img);
 
    