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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -