[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] string-search vs. string-match
From: |
Dan |
Subject: |
[Chicken-users] string-search vs. string-match |
Date: |
Wed, 1 Nov 2006 03:22:11 -0800 (PST) |
Hi folks,
I thought string-match (in unit regex) was supposed to
match a regexp at the beginning of a string, while
string-search would *search* for that regexp. At least
that's what the manual seems to say. But
csi> (string-match (regexp "(a*)(b*)") "xxaabb")
("" "" "")
csi> (string-search (regexp "(a*)(b*)") "xxaabb")
("" "" "")
csi> (string-search (regexp "(a*)(b*)") "aabb")
("aabb" "aa" "bb")
(this is still in Chicken 2.41, and I see 2.5 is out,
so this may already be fixed)
-- Dan
____________________________________________________________________________________
Want to start your own business? Learn how on Yahoo! Small Business
(http://smallbusiness.yahoo.com)
- [Chicken-users] string-search vs. string-match,
Dan <=