DBからこのHTML文字列を取得しています:-
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex</p><img class="classname" alt="alttext" src="http://www.domain.com/uploads/myimage.jpg" width="612" height="612" /><p>Going by the Itinerary, we will be at the official launch on the 22nd May.</p><img class="classname" alt="alttext" src="http://www.domain.com/uploads/myimage1.jpg" width="612" height="612" />
ご覧のとおり、文字列には 2 つのイメージ タグがあります。たとえば、最初のイメージタグのソースを取得したい:-
http://www.domain.com/uploads/myimage.jpg
HTML文字列からこのテキストを取得する方法を教えてください。
前もって感謝します