I have a string say \"a.b\" and I want to replace \".\" with \"_\".
gsub(\".\",\"_\",\"a.b\")
doesn\'t work as . matches all characters.>
try like this :
gsub("[.]","_","a.b")