[plt-scheme] regexp-match on input port returning bytes

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Thu Dec 25 04:19:31 EST 2008

Just out of curiosity, in PLT 4.1.2, why does "regexp-match" on an input 
port return bytes rather than strings, when using a string regexp (not a 
bytes regexp)?

 > (regexp-match #rx"^x" "x")
 > (regexp-match #rx"^x" (open-input-string "x"))
 > (regexp-match #rx#"^x" (open-input-string "x"))

I would've expected the second example to yield a list of strings rather 
than a list of bytes.


Posted on the users mailing list.