[Top][All Lists]
[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 )=---
- [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/02
- [Chicken-users] Problem with string-match?,
Alejandro Forero Cuervo <=
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/04
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/05
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/06
- [Chicken-users] Return multiple values from foreign-lambda*, Alejandro Forero Cuervo, 2005/05/07
- Re: [Chicken-users] Return multiple values from foreign-lambda*, Graham Fawcett, 2005/05/07