chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Problem with string-match?


From: Alejandro Forero Cuervo
Subject: [Chicken-users] Problem with string-match?
Date: Tue, 3 May 2005 10:49:50 -0500
User-agent: Mutt/1.5.6+20040907i

Hmm, I am getting strange behaviour in string-match: (string-match
"a|b" "ax") is evaluating to ("a") (rather than #f).  Interestingly,
(string-match "a|b" "xb") evaluates to ("b").  However, using "(a|b)"
as the regular expression fixes things.

It seems string-match turns regexp into (string-append "^" regexp
"$"), which, obviously, doesn't work in this case.

I'm using Chicken 1.935 (and I think PCRE).

Alejo.
http://bachue.com/alejo

---=(  Comunidad de Usuarios de Software Libre en Colombia  )=---
---=(  http://bachue.com/colibri )=--=( address@hidden  )=---




reply via email to

[Prev in Thread] Current Thread [Next in Thread]