Skip to content
Prev 200337 / 398503 Next

How to get the string '\'?

My question was from replacing a pattern by '\\'. How to replace '/'
in string by '\'?

string='abc/efg'
gsub('/','\\',string)
On Sun, Nov 15, 2009 at 5:07 PM, David Winsemius <dwinsemius at comcast.net> wrote: