Reputation: 1501
In ruby, I am trying to convert
'\"\"'
to
'""'
In short, what's the cleanest way to remove the backslashes?
Upvotes: 0
Views: 1477
Reputation: 15927
You can use the gsub
method on any string to remove unwanted characters.
some_string.gsub('\\"', '"')
Upvotes: 2