I want to remove list(\"
and \")
from strings such as list(\"TSPAN6\")
and get TSPAN6
. I tried to do that with grep
function, however I have problem with backslashes included the strings.
I tried:
gsub('list(\\"','', "list(\"TSPAN6\")", fixed=T)
but it does not work?! I appreciate if you could help me.
Using one single
gsub
.I found it: