How can i get img src link from the following text
$body="
<img src=\"http://www.phpbuilder.com/board/images/icons/icon9.gif\" border=\"0\">
Here is some text... blah blah";
i want to hold the image link and rest of the text like
$imglink="http://www.phpbuilder.com/board/images/icons/icon9.gif";
$msg="Here is some text... blah blah";
The following code wil remove the image tag
$msg=preg_replace ('/<img ([^>]+)>/i',"",$body);
But how do i separate or hold image link ?