Solved

How to get stringtokenizer to treat delimit string as a string, not a sequence of chars

Posted on 2004-03-30
2
294 Views
Last Modified: 2012-06-27
Hi,

I'm trying to use a strinktokenizer to tokenize some html in a string. I want to delimit the string with "<td>" but I don't want stringtokenizer to treat this as four separate tokens ("<","t","d",">") and instead just match the whole string. Is there any way to do this?

Thanks in advance,

Simon
0
Comment
Question by:smimon
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 10713989
Use

String[] tokens = s.split("<td>");
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10714097
8-)
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 97
java 8 lambda expresssions exception handling 3 90
Java Options in Zimbra Server 2 54
CSV file parsing thru Java 13 31
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question