preg_match() <img> tag of a page, sometimes it doesn't strip it!!??
hey guys im haveing a problem with this function
preg_match_all()
im useing this pattern "/(<img)\s (src=\"( [a-zA-Z0-9\.;:\/\?&=_|\r|\n] (.*) \.(jpg|png) )\")/isxmU"
to get all images links with jpg and png extinction
but it will only get the img tag on this way
<img src='link' .../>
but if the <img> tag has an height or width it wont get it
like that
<img height='50px' width='50px' src='link' />
and i guess this problem cuz of my pattern im telling it to get only the src which is after the img tag directly but that not what i want i want to get the src of the img where ever the src were
thanks for anyhelp :-)
|