I have a HTML content in the form of String
. There are many hyper links in the string. How can I remove only first link in the string? Please guide me.
String html = "abcdef<a href=some dynamic url>link1</a>ghijkl<a href=some url>link2</a>mnopq<a href=some url>link3</a>";
I want to remove the "link1" along with reference url from above string.