[erlang-questions] re2

Raimo Niskanen raimo+erlang-questions@REDACTED
Thu Aug 2 10:25:25 CEST 2018


On Wed, Aug 01, 2018 at 08:53:33PM +0300, Анна Мухаррам wrote:
> Hello everyone!
> 
> With use of *re* library it is possible to get all words in string with
> command:
> 
>   re:run("word1, word2 ,word3", "[a-z0-9]+", [global, {capture, all,
> > binary}]).
> >   {match,[[<<"word1">>],[<<"word2">>],[<<"word3">>]]}
> >
> 
>  But *re2* doesn't have *global* option. So with *re2* I get:
> 
> re2:run("word1, word2 ,word3", "[a-z0-9]+", [{capture, all,
> > binary}]).
> > {match,[<<"word1">>]}
> >
> 
> How could I find all words in string with *re2*?

Have you tried to create an issue at
  https://github.com/tuncer/re2/
which I guess this question is about...?

Or at the source library:
  https://github.com/google/re2
that implements it?


> 
> Thank you!


-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list