[erlang-questions] String pattern matching

Kevin q2h46uw02@REDACTED
Wed Apr 29 00:56:22 CEST 2009


Does this behavior make sense to somebody or is this sugar tasting sour?


25> "a"++B = "ab". 
"ab"
26> A++"b" = "ab".
* 1: illegal pattern


I was just looking for an erlangy way to chomp the end of strings, like

NewLine ++ "\r\n" = Line






More information about the erlang-questions mailing list