problem with string:tokens

Tim Fletcher twoggle@REDACTED
Tue Jun 30 23:00:30 CEST 2009

> It is a general question of course ! the tokens function cannot
> separate the tokens with a composite string unfortunately (here ",,")

As its name suggests, it *doesn't* behave like the more common "split"
function in other languages.

Have you tried the re module? For example:

  > re:split("A,,C,D", ",", [{return,list}]).

  > re:split("A,B,,D", ",", [{return,list}]).

More information about the erlang-questions mailing list