hi,

I must be overlooking something basic, but can't figure out why the second and 
third tests here fail. (Makes no difference whether I spell {space-character} 
the [[:space:]] or the \\s way.)

I'd be grateful for enlightenment. :)

Cheers,

Tim

(define rx-empty-or-all-blank-string
  ;#rx"^[[:space:]]*$")
  #rx"^\\s*$")

(check-equal? (regexp-match? rx-empty-or-all-blank-string "") #t)

(check-equal? (regexp-match? rx-empty-or-all-blank-string " \t ") #t)

(check-equal? (regexp-match? rx-empty-or-all-blank-string " \t\n") #t)

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to