scsh-users
[Top] [All Lists]

regexp weirdness

To: scsh-news@zurich.ai.mit.edu
Subject: regexp weirdness
From: briand@aracnet.com
Date: 30 Apr 2002 22:25:02 -0700
Organization: http://extra.newsguy.com
Welcome to scsh 0.6.0 (Chinese Democracy)
Type ,? for help.
> (rx "{ OK=#t }")
'#{re-string "{ OK=#t }"}
> (define x (rx "{ OK=#t }"))
> (regexp-search? x "foo")

Error: Posix regexp: Invalid content of \{\}
       #{Regexp}
1>

Huh ?

Well OK.  Guess I have to escape the {

> (rx "\{ OK=#t \}")

Error: invalid escapedcharacter in string
       #\{
       #{Input-fdport #{Input-channel "standard input"}}

Guess not...


Brian

-- 

   "There is no right place for the dead to live."

    -- Kai, last of the Brunnen-G


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