I am trying to do this: re:replace("test\\","\\","\\\\",[{return,list}]) but I'm getting a bad arg error. This is assuming for each "\" I need "\\" from here: http://www.erlang.org/doc/man/re.html#replace-4 I'm trying to replace each "\" with "\\". thx, -wes