wood burning stoves
The moose likes Java in General and the fly likes String Tokenizer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "String Tokenizer" Watch "String Tokenizer" New topic

String Tokenizer


Joined: Oct 26, 2004
Posts: 3

I am trying to tokenize a String that contains HTML tags. Can anyone help me with that?

Any hints will be appreciated.
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
I am trying to tokenize a String that contains HTML tags. Can anyone help me with that?

Do you want to hold the html tags while tokenizing?? or you want to
remove the tags from your string?

If you want to remove html tags, then you may use regular expressions API.

Go through the below given links which may be helpful...

Regular Expressions


[ October 26, 2004: Message edited by: Vijay Vaddem ]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Compscience Compscience,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
You may want to take a look at the StringTokenizer class. It will definitely help with this job.


Java API Documentation
The Java Tutorial
I agree. Here's the link: http://aspose.com/file-tools
subject: String Tokenizer
It's not a secret anymore!