I can't seem to get rid of the backslash (\) from a string. Read tons of different answers to this question but none of them seems to work for me. Consider following example (the trials below are taken from various answers to similar question in stackoverflow):
temp = "35:12:34\"}}}\"}"
gsub("\\","",temp)
Error in gsub("\", "", temp) : invalid regular expression '\', reason 'Trailing backslash'
gsub("\\","",temp,fixed=T)
[1] "35:12:34\"}}}\"}"
gsub("\\\\","",temp,fixed=T)
[1] "35:12:34\"}}}\"}"
gsub("([\\])","",temp)
[1] "35:12:34\"}}}\"}"
gsub("([\\])","",temp,fixed=T)
[1] "35:12:34\"}}}\"}"
Would appreciate help to get rid of this backslash.