• Post Reply Bookmark Topic Watch Topic
  • New Topic

Optium way to replace special character  RSS feed

 
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.
 
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!