[erlang-questions] parsing text

Attila Rajmund Nohl attila.r.nohl@REDACTED
Thu Apr 29 20:53:07 CEST 2010


2010/4/29, Wes James <comptekki@REDACTED>:
> I have a function grabbing a page and I'm pulling text out of the
> result.  I can get the line:
>
> lists:nth(424,B).
> <<"<B>Page Counter</B></TD><TD>4880</TD></TR>">>

Try something like re:run(lists:nth(424,B), "<TD>(\\d+)</TD>",
[{capture, first, list}]).


More information about the erlang-questions mailing list