|
Thanks for the help. What can I use to match just the image name from the string extracted from the first match?
Ie. How do I match just pic.jpg out of: src="http://example.com/images/pic.jpg"
I tried: preg_match("/\/.+?\.jpg/", $matches[1], $imagematch);
but that matches the longest string possible (//example.com/images/pic.jpg)
Thanks.
|