Possible Duplicate:
How to get IMG tag code from HTML document?
I need help to make preg_match_all() for every image URL on random page.
As far I do this
preg_match_all('/img[\d\D]+?src\=(\'|\")([\d\D]+?)(\'|\")/i', $page, $matches);
But won't work for every page. Must match all possible image closed in img src also ones that doesn't look like images. thank you