File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes remove special characters from String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "remove special characters from String" Watch "remove special characters from String" New topic
Author

remove special characters from String

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1382
I have String test = " i am 'fine". hope 'you "are";
How can i remove wherever my String has single or double quotes ?
Mark Van Tuyl
Ranch Hand

Joined: Mar 22, 2002
Posts: 60


<a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank" rel="nofollow">How To Ask Smart Questions</a>
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1382
i am using jdk 1.3. Jdk 1.3 doesn't support replaceAll(String,String)
Kenneth Albertson
Ranch Hand

Joined: Sep 18, 2005
Posts: 59
Originally posted by kri shan:i am using jdk 1.3. Jdk 1.3 doesn't support replaceAll(String,String)

If you download the 1.5 API source code, this is what you will find:

Does that answer your question ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

This is really the same as your other question. See there for a possible solution.
[ October 03, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: remove special characters from String