jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes Optium way to replace special character  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Optium way to replace special character  " Watch "Optium way to replace special character  " New topic
Author

Optium way to replace special character

Raj kalaria
Ranch Hand

Joined: Sep 08, 2005
Posts: 72
Hi,

I want to replace all the ' (single appostrophe) with '' (two times appostrophe) in my string.

I know we can do with

mystring.replace(','')

Can some one tell me if there is any better logic or way other then this.

Any suggestions would be help full.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923



http://home.arcor.de/hirnstrom/bewerbung
 
Consider Paul's rocket mass heater.
 
subject: Optium way to replace special character
 
Similar Threads
replace string in the body using javascript1.3 in Netscape navigator
How to Remove System.out.println() in my Application Code
replacing a regex wild card
Is there any way I can fix my memory stick?
replacee / with \