[erlang-questions] String handling & regexp
Sun Sep 14 09:04:18 CEST 2008
I'm new to Erlang, and trying not to reinvent the wheel to do some
basic string processing.
I'm reading a line that has a room name and a message, separated by
one (or more) whitespace characters, and terminated by <crlf>.
Is there a way to tell regexp:split() to please give me back the
groups matched by the regexp ?
Here's my first attempt :
regexp:split(" \t \t room \t hello world \r\n", "[
I'd like to get back something like ["room", "hello world "] with this example.
Thanks for your help,
We are the knights who say
More information about the erlang-questions