Im trying to get HTML image tag url from the given string. There should be some regular expression to get it. But don\'t know how to do it. Can anyone help me on this.
I use jsoup. It is pretty easy to use and lightweight. Some versions were not Java 1.5 compatible but it appears they fixed the issue.
String html = str; Document doc = Jsoup.parse(html); Elements pngs = doc.select("img[src$=.png]"); // img with src ending .png