On Thu, 9 Jul 2020 14:43:03 -0400, Philip McGrath <[email protected]> wrote:
>On Thu, Jul 9, 2020 at 10:32 AM Sorawee Porncharoenwase < >[email protected]> wrote: > >> Racket REPL doesn’t handle unicode well. If you try (regexp-match? >> #px"^[a-zA-Z]+$" "héllo") in DrRacket, or write it as a program in a file >> and run it, you will find that it does evaluate to #f. >> >See this issue for workarounds, including installing the `readline-gpl` >package: https://github.com/racket/racket/issues/3223 > >But you may have some other issues: for me, `(regexp-match? >#px"^[a-zA-Z]+$" "h\U+FFC3\U+FFA9llo")` gives an error saying "read-syntax: >no hex digit following `\U`" It works if you remove the '+' sign. \U and \u are defined to take hexidecimal values, which are unsigned. For comparison, \x fails with the same error if the value is signed. George -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/ge0fgflkfkh679e5v8uk9udr3hj0mhvf8h%404ax.com.

