According to documentation it's not<div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "><dt><strong>trim</strong></dt><dt><strong><meta charset="utf-8"><span class="Apple-style-span" style="font-weight: normal; ">Removes</span> trailing<span class="Apple-style-span" style="font-weight: normal; "> empty parts of the result (as does trim in <span class="code" style="font-family: courier; font-weight: normal; ">re:split/3</span>)</span></strong></dt>
<dt><strong><span class="Apple-style-span" style="font-weight: normal; "><br></span></strong></dt></span><div><a href="http://www.erlang.org/doc/man/binary.html#split-2">http://www.erlang.org/doc/man/binary.html#split-2</a><br>
<br><div class="gmail_quote">On Tue, Jun 28, 2011 at 11:58 AM, Pablo Platt <span dir="ltr"><<a href="mailto:pablo.platt@yahoo.com">pablo.platt@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:12pt"><div>binary:split with the trim option doesn't remove empty results from the beginning of the binary:<br></div>
<div><br></div><div>binary:split(<<"/a/b/">>, <<"/">>, [global, trim]).</div><div>[<<>>,<<"a">>,<<"b">>]</div><div><br></div>
<div>binary:split(<<"//a/b///">>, <<"/">>, [trim, global]).</div><div>[<<>>,<<>>,<<"a">>,<<"b">>]</div><div><br>
</div><div>Is this a bug?</div><div><br></div><div>Thanks</div></div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div><div>
<a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div><br>
</div></div>