[R] How to remove backslash

Christofer Bogaso bog@@o@chri@tofer @ending from gm@il@com
Fri Sep 21 12:34:35 CEST 2018


I have below string where I am trying to remove Backslash from. I tried
with gsub() function, however failed to remove that:

> str = '<span id=\"ctl00'
> gsub("\\", "", str)
Error in gsub("\\", "", str) :
  invalid regular expression '\', reason 'Trailing backslash'

Any pointer to the right approach?

Thanks for your time

	[[alternative HTML version deleted]]

More information about the R-help mailing list