[erlang-patches] Fix re:split doc not to accept option 'global'

Shunichi Shinohara <>
Sun Aug 21 04:26:48 CEST 2011


I encountered  badarg error when using re:split with option 'global'.

Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2]
[async-threads:0] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
1> re:split("a;b;c", ";", [global]).
** exception error: bad argument
     in function  re:split/3
        called as re:split("a;b;c",";",[global])

Implementation of re:split does not accept global option,
and the document would be wrong.

git fetch :shino/otp.git ss/re-split-doc-bug



shino (Shunichi Shinohara)

More information about the erlang-patches mailing list