I think this should work : re:run("It\'s 1 word", "word", [{capture, all, list}]).<br><br><div class="gmail_quote">On 22 March 2013 09:58, 饕餮 <span dir="ltr"><<a href="mailto:249505968@qq.com" target="_blank">249505968@qq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I have see the re model doc.</div><div>But still not know how to use regex to take words from a string...</div><div>
How to get the "word" from the string "It's 1 word" with re?</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>