In Android, I want to get value from src attribute from image tag as follow.
<img border="0" height="430" src="http://2.bp.blogspot.com/-551kBiFcc3o/US2MxmAHq1I/AAAAAAAAZvM/DjurUt5-4Ac/s640/856738_537952452911181_897510449_o.jpg" width="640">
In Android, I want to get value from src attribute from image tag as follow.
<img border="0" height="430" src="http://2.bp.blogspot.com/-551kBiFcc3o/US2MxmAHq1I/AAAAAAAAZvM/DjurUt5-4Ac/s640/856738_537952452911181_897510449_o.jpg" width="640">
You can try using regular expressions to filter out img src's:
String imgRegex = "<img[^>]+src\\s*=\\s*['\"]([^'\"]+)['\"][^>]*>";
You should use this only if you know what you're doing (as CommonsWare noted in the comments)
The rest is up to you - you've given us a little information about the context.