[plt-scheme] regexp-match a full line

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Oct 6 21:06:27 EDT 2008

You could make your regexp match to the end of the line (using the $
symbol IIRC) or you could convert the file to a list of strings and
match on those.  For the later the port->string-list function in the
port.plt package on PLaneT will help.

N.

On Tue, Oct 7, 2008 at 1:29 AM, Eli Nistal <chico.mono at gmail.com> wrote:
> How do I pull an entire line from a file that contains the regular
> expression I am looking for e.g. like grep? regexp-match* pulls all the
> instances of a regular expression from an open file. How can I get
> regexp-match to pull the whole line?
>
> Thanks.
>
> -- EMN
>
> You can meet at his location,
> but you better come with cash.
> -- Cake
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>


Posted on the users mailing list.