[erlang-questions] Re: How to remove \ from string

Wes James comptekki@REDACTED
Wed Apr 6 18:04:11 CEST 2011


On Wed, Apr 6, 2011 at 9:51 AM, Muhammad Yousaf
<muhammad.yousaf@REDACTED> wrote:
> Hi,
> I have a string
> "{get,\"user\",\"wilson\",\"lname\"}"
> i want to remove all " \" from the above string how can i do that ??
> i tried re:replace but is not working any help will be appreciated
> thanks
> Regards,
> Muhammad Yousaf

Just one of probably many ways:

1> A="{get,\"user\",\"wilson\",\"lname\"}".
"{get,\"user\",\"wilson\",\"lname\"}"
2> A--"\"\"\"\"\"\"".
"{get,user,wilson,lname}"

-wes



More information about the erlang-questions mailing list