(define (string-split str [sep #px"\\s+"])
> (remove* '("") (regexp-split sep str)))
>Nearly, I meant something more like this: (define (string-split str [splitter " "]) (regexp-split (regexp-quote splitter) str)) No regexp from the user POV, and much easier to use with little knowledge.
_________________________ Racket Developers list: http://lists.racket-lang.org/dev

