Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
- match date
- match number
- match numbers
- match year
- View more
Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
Define and work with number (integer) ranges easily. Instead of requiring the full ranges in memory it allows for easy checks on containment, size and can turn ranges (or collections of ranges) into short string notations.