I have a single String in the following format(Output from Jsoup)
[<ul>
<li><span></span><a, rel="nofollow"><span>Afterword</span></a></li>
<li><span></span><a, rel="nofollow"><span>MW, Chapter, 2255</span></a></li>
<li><span></span><a, rel="nofollow"><span>MW, Chapter, 2254</span></a></li>
<li><span></span><a, rel="nofollow"><span>MW, Chapter, 2253</span></a></li>
<li><span></span><a, rel="nofollow"><span>MW, Chapter, 2252</span></a></li>
</ul>]
I want to extract the integers such as 2255, 2254 etc from this String.
I used various options I found here but none of them worked. The solutions so far gives me just the digits all banded together.
I am open to use Jsoup or split for this.
Please help.