Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String Tokenizer

 
armo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to take a look at the StringTokenizer class. It will definitely help with this job.

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic