how would you parse an image link, because you wouldnt know how long the string for it will be?
"Parse" it in what manner?
as in find the start of the text "<img" then select all that is in between and stop at the next ">" as this will be the close of the image. so when i parse a html document whith the function i already have i can replace it with some text.
Could do it with ereg_replace()?
$src = "<img src=\"blah.jpg\" alt=\"blah\">"; $src = ereg_replace("<img","",$src); $src = ereg_replace(">","",$src);