[plt-scheme] getting all regex matches for a pattern

From: Eli Barzilay (eli at barzilay.org)
Date: Sun Nov 1 01:10:59 EDT 2009

On Nov  1, Charlie Smith wrote:
> (regex-match #rx"some regex pattern" target-string)
> seems to get only the first match.

> (regexp-match #rx"fo*" "ffoo fo")
> (regexp-match* #rx"fo*" "ffoo fo")
("f" "foo" "fo")

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.