[plt-scheme] Howto regexp-split string but keep delimiters

From: Erich Rast (erich at snafu.de)
Date: Fri Nov 21 08:17:23 EST 2008

Hello all,

I need to split a large string into separate words using a regexp, but
need to keep non-whitespace delimiters:

"Ab, c, dd,hello." ==> ("Ab" "," "c" "," "dd" "," "hello" ".")

Can this be done using regexp-split? How?

Best regards,


Posted on the users mailing list.