On 5/3/05, Alejandro Forero Cuervo <[EMAIL PROTECTED]> 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 mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users