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

Wes James comptekki@REDACTED
Wed Apr 6 19:44:35 CEST 2011

On Wed, Apr 6, 2011 at 11:36 AM, Muhammad Yousaf
<muhammad.yousaf@REDACTED> wrote:
> Thanks a lot but i only want to remove backslash not double quotes
> for example
> Val = <<"{get,\"user\",\"wilson\",\"lname\"}">> ,
> i need Val= <<"{get,"user","wilson","lname"}">>
> what i am doing with your help

You can't remove the \ from the string if you have " in the string.
the \ is the escape charactor so the " can be viewed.  \ is not in the
internal representation, only when viewing it.


More information about the erlang-questions mailing list