[erlang-questions] Any reason not to have a string:replace?

Alexei Sholik <>
Fri Apr 18 15:50:36 CEST 2014


Because re is dog-slow compared to simple string operations. See
https://github.com/elixir-lang/elixir/pull/1188#issuecomment-18932390


On Tue, Apr 8, 2014 at 7:10 PM, Sean Cribbs <> wrote:

> Why not use re:replace/3,4?
>
> http://www.erlang.org/doc/man/re.html#replace-4
>
>
> On Tue, Apr 8, 2014 at 10:52 AM, David Welton <>wrote:
>
>> It would be convenient to have something like binary:replace, but for
>> strings.
>>
>> I'd be happy to try to put together a pull request that does this,
>> although I'd likely need some help with the finer points of what
>> options to add.
>>
>> --
>> David N. Welton
>>
>> http://www.welton.it/davidw/
>>
>> http://www.dedasys.com/
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
>
> --
> Sean Cribbs <>
> Software Engineer
> Basho Technologies, Inc.
> http://basho.com/
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>


-- 
Best regards
Alexei Sholik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140418/0cf223bd/attachment.html>


More information about the erlang-questions mailing list