• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Optium way to replace special character

 
Raj kalaria
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic