File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
String Tokenizer
armo
Greenhorn
Joined: Oct 26, 2004
Posts: 3
posted
Oct 26, 2004 01:12:00
0
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
posted
Oct 26, 2004 02:16:00
0
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
posted
Oct 26, 2004 09:19:00
0
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
posted
Oct 26, 2004 18:07:00
0
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://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: String Tokenizer
Similar Threads
How to convert byte array into string array?
date format with MS Access database
Tech Word Game
WA #1.....word association
ResultSet to Array
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter