[racket] regexp-match* that returns clusters?

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Sat Dec 18 22:03:52 EST 2010

Is there some equivalent of regexp-match* that returns a list of all
the (non-overlapping) matches in a string.

I want something like:

> (regexp-match*-clusters #px"(?:^|\\s+)([A-Z])" "This gets Initial CAPS, I hope")
'(("T" "T") (" I" "I") (" C" "C") (" I" "I"))

Any luck?

Thanks!
Todd


Posted on the users mailing list.