Erlang Binary Split -
i need split binary so
<<"one|two|three|four|five">> into
[<<"one">>,<<"two">>,<<"three">>,<<"four">>,<<"five">>] i'm there
binary:split(<<"one|two|three|four|five">>, <<"|">>, []). but need make scope global split entire binary , not first item. answer staring me in face here http://www.erlang.org/doc/man/binary.html#split-3 i'm having trouble working out documentation how specify scope global?
as usual, blindingly obvious once have worked out:
binary:split(<<"one|two|three|four|five">>, <<"|">>, [global]).
Comments
Post a Comment