chicken-users
[Top][All Lists]
Advanced

[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




reply via email to

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