私は次のHTMLを持っています...
<h3 class="number">
<span class="navigation">
6:55 <a href="/results/result.html" class="under"><b>»</b></a>
</span>**This is the text I need to parse!**</h3>
次のコードを使用して、h3 タグからテキストを抽出できます。
Element h3 = doc.select("h3").get(0);
残念ながら、それはそのタグのすべてを私に与えます。
6:55 » This is the text I need to parse!
Jsoup を使用して異なるタグを解析できますか? これを行うためのベストプラクティスはありますか (正規表現?)