I am trying to tokenize a String that contains HTML tags. Can anyone help me with that?
Any hints will be appreciated. Thanks.
Joined: Oct 12, 2004
To tokenize your string, you might try the split(...) method of the String class. It takes a regular expression as its argument, so you might want to look up the java documentation on regular expressions. A helpful link that I found is this regex recipes pdf file.
There is also a StringTokenizer class, but its use in code is no longer recommended by Sun.