use
        String title = TITLE.replace('"', '\'');


-----Original Message-----
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: 27 August 2002 21:57
To: [EMAIL PROTECTED]
Subject: Help with replacing a quotes


I am trying to replace '"'(Double quotes) with in a substring with
'''(Single quotes).
This is the code I thought I should use but tends to error out. Can any one
help me?
String title = TITLE.replace('"', ''');

Thank you in advance
Lance

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to