| From: Neil Van Dyke (neil at neilvandyke.org) Date: Sat Aug 27 04:04:34 EDT 2011 |
|
I don't know about ":space:", but you can do regexp character classes
the old-fashioned way:
#lang racket/base
(define str "17.4 25.4 15.7 13.7 19.4 20.9 ")
(regexp-split #rx"[ \t]+" str)
;;==> '("17.4" "25.4" "15.7" "13.7" "19.4" "20.9" "")
I also used "regexp" instead of "pregexp" here.
--
http://www.neilvandyke.org/
| Posted on the users mailing list. |
|