ranger.go generates regexp code for numeric ranges and is inspired by dimka665/range-regex
generates a regular expression that matches any number between two given numbers.
first import simonwaldherr.de/go/ranger
and then
call ranger.Compile(23,37)
and you will get ^(2[3-9]|3[0-7])$
.
because we can
yes.
maybe. maybe not
no, definitely not!
take a look at the benchmark in ranger_test.go before using it.