Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-03-30
2
Medium Priority
?
301 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 500 total points
ID: 10713989
Use

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

Expert Comment

by:CEHJ
ID: 10714097
8-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

885 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