scsh-users
[Top] [All Lists]

Re: "dynamic" rx expressions

To: briand@zipcon.net
Subject: Re: "dynamic" rx expressions
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: Wed, 06 Feb 2002 10:24:46 +0100
Cc: scsh-news@zurich.ai.mit.edu
>>>>> "Brian" == briand  <briand@zipcon.net> writes:

Brian> Very simply, why doesn't this work ?

>> (define x '(| "a1" "b2"))
>> x
Brian> '(| "a1" "b2")
>> (rx x)

Brian> Error: Illegal regular expression
Brian>        x
1> 
>> (rx ,x)

Because X is a list, but SRE's are syntax.

Brian> They come in as strings, so I make a string input port, (read) them,
Brian> and then try to do:

Look at SRE->REGEXP in Section 6.5.2 of the manual.

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

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