On Sun, Apr 22, 2018 at 10:40 PM, Zelphir Kaltstahl
> Ah OK, I understand that additional newline. Since the code matching the
> regex is run before that newline gets in, the newline will be on the
> input port.
> In DrRacket I observe the following:
> (I remembered that there are negative numbers :D and my regex got a bit
> more complicated.)
> (regexp-try-match #rx"\\s*^(-?[1-9]+[0-9]*)$|\\s*^0$" (current-input-port))
And then, there's also 0.
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
For more options, visit https://groups.google.com/d/optout.