This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
 
subject: Optium way to replace special character