[erlang-questions] comparing strings

Dmitry Kolesnikov <>
Fri Dec 27 18:06:23 CET 2013


Hello,

make: *** No rule to make target `sense'.  Stop.

\ is used as escape symbol at shell. \) is interpreted as )
"nitro\\) opera" =:= "nitro) opera".
false

- Dmitry

On Dec 27, 2013, at 5:11 PM, Rodolfo Dias <> wrote:

> 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
> 
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list