aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "String Tokenizer" Watch "String Tokenizer" New topic
Author

String Tokenizer

armo
Greenhorn

Joined: Oct 26, 2004
Posts: 3
Hello,

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

Any hints will be appreciated.
Thanks
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

http://www.javaworld.com/javaworld/jw-07-2001/jw-0713-regex-p3.html


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

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.

Layne


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