How to exract img src using preg_match
<p>I have different format array of html 
[amp;src]=>image, anotherone [posthtml]=>image2, anothertwo [nbsp;image3</p>

<p>How to extract img and text using common preg_match() by which we can get perfect image src and text from html. If it is not possible using preg_match(), is there another way to fix it.
If any one know please, reply it. How to fix it.
I need your hand.</p>
