<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>The shell uses the standard erlang output functions which as a rule print things in such a way so that if you read them in again you get the same data. So that is why you get </div><div><br></div><div>71> "nitro\\)opera".<br></div><div>"nitro\\)opera"</div><div><br></div><div>The string itself is only 12 chars long consisting of n i t r o \ ) o p e r a .<br></div><div><br></div><div>Robert<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"OvermindDL1" <overminddl1@gmail.com><br><b>To: </b>"Rodolfo Dias" <dias.rodolfo@gmail.com><br><b>Cc: </b>erlang-questions@erlang.org<br><b>Sent: </b>Saturday, 28 December, 2013 1:35:34 AM<br><b>Subject: </b>Re: [erlang-questions] comparing strings<br><div><br></div><p dir="ltr">That is because when the shell prints a type and that type is a stringlist then it escapes it. Do this instead to see what the string contains: io:format("~s", [TheStringValHere]).</p><div class="gmail_quote">On Dec 27, 2013 10:33 AM, "Rodolfo Dias" <<a href="mailto:dias.rodolfo@gmail.com" target="_blank" data-mce-href="mailto:dias.rodolfo@gmail.com">dias.rodolfo@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div dir="ltr"><div>Thanks a lot,</div><div><br></div><div> I suspected that \ was a escape, but I stayed confuse when I did</div><div><div><br></div></div><div><div>71> "nitro\\) opera".</div><div>"nitro\\) opera"</div></div><div><br></div><div>I expected see "nitro\) opera".</div><div><br></div><div> </div><div>Best Regards</div><div>Rodolfo Dias </div></div><div class="gmail_extra"><br><div><br></div><div class="gmail_quote">2013/12/27 Dmitry Kolesnikov <span dir="ltr"><<a href="mailto:dmkolesnikov@gmail.com" target="_blank" data-mce-href="mailto:dmkolesnikov@gmail.com">dmkolesnikov@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">Hello,<br> <br> make: *** No rule to make target `sense'. Stop.<br> <br> \ is used as escape symbol at shell. \) is interpreted as )<br><div>"nitro\\) opera" =:= "nitro) opera".<br></div>false<br> <span><span style="color: #888888;" data-mce-style="color: #888888;" color="#888888"><br> - Dmitry<br> </span></span><div><br> On Dec 27, 2013, at 5:11 PM, Rodolfo Dias <<a href="mailto:dias.rodolfo@gmail.com" target="_blank" data-mce-href="mailto:dias.rodolfo@gmail.com">dias.rodolfo@gmail.com</a>> wrote:<br> <br></div><div><div>> Hi all,<br> ><br> > I am creating a module to extract some information from the User Agent (HTTP) and am checking the following situation.<br> ><br> > 21> "nitro\) opera" == "nitro) opera".<br> > true<br> > 22> "nitro\) opera" =:= "nitro) opera".<br> > true<br> > 23> string:equals("nitro\) opera", "nitro) opera").<br> > true<br> ><br> > Make sense?<br> ><br> ><br> > Rodolfo Dias<br> ><br> ><br> ><br> ><br></div></div><div><div>> _______________________________________________<br> > erlang-questions mailing list<br> > <a href="mailto:erlang-questions@erlang.org" target="_blank" data-mce-href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br> > <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank" data-mce-href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br> <br></div></div></blockquote></div><br></div><br>_______________________________________________<br> erlang-questions mailing list<br> <a href="mailto:erlang-questions@erlang.org" target="_blank" data-mce-href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank" data-mce-href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br> <br></blockquote></div><br>_______________________________________________<br>erlang-questions mailing list<br>erlang-questions@erlang.org<br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote><div><br></div></div></body></html>