[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Problem with string-match?
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Problem with string-match? |
Date: |
Thu, 5 May 2005 23:24:00 +0200 |
On 5/3/05, Alejandro Forero Cuervo <address@hidden> wrote:
>
> 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.
Yes, this is exactly the case. I haven't found any better solution yet.
cheers,
felix
- [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/02
- [Chicken-users] Problem with string-match?, Alejandro Forero Cuervo, 2005/05/03
- Re: [Chicken-users] Problem with string-match?,
felix winkelmann <=
- 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
- Re: [Chicken-users] Return multiple values from foreign-lambda*, Alejandro Forero Cuervo, 2005/05/07