preg_match_all image source
- by David
I have the following regex expression which is to extract the source of any img tag in HTML.
/(<img).*(src\s*=\s*"([a-zA-Z0-9\.;:\/\?&=\-_|\r|\n]{1,})")/isxmU
However, it doesn't appear to be matching the following:
<IMG SRC='http://www.mysite.com/pix/lens/mtf/CAEF8512L.gif'>
How can I build it to match this as well?