bad arg error with re:replace

Wes James <>
Wed Jul 21 23:11:03 CEST 2010


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


More information about the erlang-questions mailing list