Solved

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

Posted on 2004-03-30
2
293 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 76
reasons why a "inside Menu" would not appear for a web server 6 56
Starting to learn JAVA, 7 59
Java / Linux and Regular Expressions 11 69
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now