You also need to match the beginning and end of the string:
#rx"^DPTO[1-9][0-9]?$"
Benjamin Greenman wrote on 03/11/2016 05:41 PM:
I'm glad you found #px. The issue here is that bounded repetitions
like {1,2} are not part of the #rx grammar.
But #px supports them just fine.
http://docs.racket-lang.org/reference/regexp.html
--
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.