I want to be able to get the src image from this html. At first I was thinking regex patern and matcher but I can’t seem to figure out how do I get it. I operate on JAVA.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<body class="calibre">
<div class="calibre1">
<div class="s">
<p class="calibre2">
<img class="calibre3" src="0001.jpg"/>
</p>
<br id="calibre_pb_0" class="calibre4"/>
</div>
</div>
</body>
</html>
String a;
Output : a = “src=”0001.jpg””
check out the solution for a more generalized question, try to adapt the for loop instead to look for what you specifically need:
How to get all Images src's of some html