To generate a regex, you may use the range function to generate
both number and character ranges, depending on what's passed in.
A number range is generated when passing in 2 numbers,
and a character range is generated when passing in 2 strings with a length of 1.