<div>re:replace(S,["\""],"",[global, {return,list}]). </div><div>"{get,user,wilson,lname}"</div><div><br></div><br><div class="gmail_quote">On Wed, Apr 6, 2011 at 6:07 PM, Gianfranco Alongi <span dir="ltr"><<a href="mailto:gianfranco.alongi@erlang-solutions.com">gianfranco.alongi@erlang-solutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
[X||X<-"{get,\"user\",\"wilson\",\"lname\"}",X=/=$\\,X=/=$"].<br>
<br>
"{get,user,wilson,lname}"<br>
<div><div></div><div class="h5"><br>
<br>
----- Original Message -----<br>
From: "Wes James" <<a href="mailto:comptekki@gmail.com">comptekki@gmail.com</a>><br>
To: "Muhammad Yousaf" <<a href="mailto:muhammad.yousaf@live.com">muhammad.yousaf@live.com</a>><br>
Cc: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
Sent: Wednesday, 6 April, 2011 17:04:11 GMT +00:00 GMT Britain, Ireland, Portugal<br>
Subject: [erlang-questions] Re: How to remove \ from string<br>
<br>
On Wed, Apr 6, 2011 at 9:51 AM, Muhammad Yousaf<br>
<<a href="mailto:muhammad.yousaf@live.com">muhammad.yousaf@live.com</a>> wrote:<br>
> Hi,<br>
> I have a string<br>
> "{get,\"user\",\"wilson\",\"lname\"}"<br>
> i want to remove all " \" from the above string how can i do that ??<br>
> i tried re:replace but is not working any help will be appreciated<br>
> thanks<br>
> Regards,<br>
> Muhammad Yousaf<br>
<br>
Just one of probably many ways:<br>
<br>
1> A="{get,\"user\",\"wilson\",\"lname\"}".<br>
"{get,\"user\",\"wilson\",\"lname\"}"<br>
2> A--"\"\"\"\"\"\"".<br>
"{get,user,wilson,lname}"<br>
<br>
-wes<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div>
<div><a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div><br>