This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I am trying to tokenize a String that contains HTML tags. Can anyone help me with that?
Any hints will be appreciated. Thanks.
Dun Dagda
Ranch Hand
Joined: Oct 12, 2004
Posts: 54
posted
0
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.
Round these parts, posting the same question in multiple forums is bad practice. It can make it rather difficult to follow a conversation, plus folks spend time saying things that were just said.
Please continue this conversation in the duplicate thread. I'm closing this thread.