wood burning stoves 2.0*
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
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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 \