How to split a string and get a specific string in android?
<p>I want to split a string and get a word finally. My data in database is as follows.</p>

<blockquote>
  <p>Mohandas Karamchand Gandhi (1869-1948), also known as Mahatma Gandhi, was born in Porbandar in the present day state of Gujarat in India on October 2, 1869. 
  He was raised in a very conservative family that had affiliations with the ruling family of Kathiawad. He was educated in law at University College, London.
  src="/Leaders/gandhi.png"</p>
</blockquote>

<p>From the above paragraph I want get the image name "gandhi". I am getting the index of "src=". But now how can I get the image name i.e "gandhi" finally.</p>

<p>My Code:</p>

<pre><code>int index1;
public static String htmldata = "src=";
if(paragraph.contains("src="))
{
   index1 = paragraph.indexOf(htmldata);
   System.out.println("index1 val"+index1);
}
else
   System.out.println("not found");
</code></pre>
