</div><div class="tr">
</div><div class="bl">
</div><div class="br">
</div> <img src="http://blablabla.com/medium/blablabla.jpg" />
</div></a>
</div><div class="meta">
<h3 class="action">
<span>
<a href="/abc">ABC</a>
</span> a picture
</h3>
我節省specifing鏈接保存網站的HTML源代碼轉換成字符串如下:搜索和在HTML代碼
public static BufferedReader read(String url) throws Exception
{
return new BufferedReader(
new InputStreamReader(
new URL(url).openStream()));
}
在這段代碼我要保存所有圖片的URL在一個新的String王氏concating \ n其中/medium/裏面或使字符串中的所有圖像鏈接變得更容易與\ n。 過程應該如何?在此先感謝
我會使用正則表達式來查找網址。 – MrSmith42