<div dir="ltr"><div>Hello everyone!</div><div><br></div><div>With use of <i><b>re</b></i> library it is possible to get all words in string with command:<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="font-family:garamond,serif"><font size="2">  re:run("word1, word2 ,word3", "[a-z0-9]+", [global, {capture, all, binary}]).<br>  {match,[[<<"word1">>],[<<"word2">>],[<<"word3">>]]}</font></span><br></div></blockquote><div><br></div><div> But <i><b>re2</b></i> doesn't have <i><b>global</b></i> option. So with <i><b>re2</b></i> I get:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:garamond,serif">re2:run("word1, word2 ,word3", "[a-z0-9]+", [{capture, all, binary}]).        <br>{match,[<<"word1">>]}</span><br></blockquote><br></div><div>How could I find all words in string with <i><b>re2</b></i>?</div><div><br></div><div>Thank you!<br></div></div>