scsh-users
[Top] [All Lists]

beginning of word (bow) in regular expressions

To: scsh-news@zurich.ai.mit.edu
Subject: beginning of word (bow) in regular expressions
From: Ed Kademan <kademan@phz.com>
Date: 14 Feb 2002 12:43:55 -0500
The regular expression subsystem seems to have forgotten what `bow'
means.

  Starting scheme ...
  ILISP V5.11.1  Use M-x ilisp-bug for problems and suggestions.
  Welcome to scsh 0.6.0 (Chinese Democracy)
  Type ,? for help.
  > 
  > (regexp-substitute/global
     #f (rx (: bow "we")) "Here we go."
     'pre "you" 'post)
  Error: Posix regexp: invalid character class type
         #{Regexp}
  1> ,reset
  Top level

  > (regexp-substitute/global
     #f (rx (: "we")) "Here we go."
     'pre "you" 'post)
  "Here you go."

-- 
Ed Kademan              508.651.3700
PHZ Capital Partners    508.653.1745 (fax)
321 Commonwealth Road   <kademan@phz.com>
Wayland, MA 01778

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