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 mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users