scsh-users
[Top] [All Lists]

Re: Regular expressions

To: scsh@zurich.ai.mit.edu
Subject: Re: Regular expressions
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: Sat, 02 Mar 2002 16:26:22 +0100
>>>>> "Maurício" == briqueabraque  <Maur> writes:

Maurício>     Hi,

Maurício>     I've been looking for a language where I can do regular 
expressions in
Maurício> Windows. Scsh seems to be nice, but, in all examples I've seen on the
Maurício> documentation or in external modules, I only see regular expressions 
used in
Maurício> small strings, but I need to search big files (500Mb) for several 
matchs of
Maurício> a regular expressions. How do you suggest me to do that in 
scsh/scheme,
Maurício> using either the scsh way or other modules?

Just read the file in line by line.  You probably want to use
PORT-FOLD, READ-LINE, and REGEXP-SEARCH.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

<Prev in Thread] Current Thread [Next in Thread>