[erlang-questions] Running a regular expression on each line of a file

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Mon Jan 10 18:42:02 CET 2011


On Mon, Jan 10, 2011 at 17:02, Dave Challis <dsc@REDACTED> wrote:

> parse(Re) ->
>    case io:get_chars('', 8192) of

Since your data is line-oriented, try io:get_line/1 here. You are not
going to get a line of input at a time with your approach I think but
rather 8K. So how simple are your small inputs?

-- 
J.


More information about the erlang-questions mailing list