I have an HTML document, contained in a String (using this code: http://www.javaalmanac.com/egs/javax.swing.text.html/GetText.html
Now, I would like to extract the String between the <title> tag, and the </title> tag.
(The title tags will *always* be in this document).
Any example code for this? Should I just use StringTokenizer, setting the delimiter to "<title>", then in the second token, run the StringTokenizer class again, to extract the first token, when the delimiter is "</title>" ??
That's the best idea that I can come up with.
Thanks in advance,