Note this : re:replace("single quote ' etc...", "'", [92], [{return,list}]). "single quote \\ etc..." when replacing ' by \ , one for one, two \ are in the result string... regards