[erlang-questions] comparing strings

Rodolfo Dias <>
Fri Dec 27 16:11:28 CET 2013


Hi all,

   I am creating a module to extract some information from the User Agent
(HTTP) and am checking the following situation.

21> "nitro\) opera" == "nitro) opera".
true
22> "nitro\) opera" =:= "nitro) opera".
true
23> string:equals("nitro\) opera", "nitro) opera").
true

Make sense?


Rodolfo Dias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131227/fbd6d998/attachment.html>


More information about the erlang-questions mailing list