to-regex-range icon indicating copy to clipboard operation
to-regex-range copied to clipboard

Pass two numbers, get a regex-compatible source string for matching ranges. Fast compiler, optimized regex, and validated against more than 2.78 million test assertions. Useful for creating regular ex...

Results 8 to-regex-range issues
Sort by recently updated
recently updated
newest added

This PR adds power support on travis.

Thank you for this awesome project. I found that some examples' result of the document are outdated and updated them. I added `(?:` `)` wrap to the results (This is...

``` const source = toRegexRange( "0", "18446744073709551615" ); const regex = new RegExp(`^${source}$`); console.log( regex.test( "71847175378514" ) ); console.log( regex.test( "18446744073709551615" ) ); ``` //outputs true, then false

How to put infinity as a parameter. E.g. I will need a positive number which can be any length. Range eg. (-5, infinity)

added options.antlr to support antlr syntax

Firstly, let me congratulate you on this fine tool :+1: Secondly, this is not an issue but a question: Is it possible to add Real Numbers to the range (floats)?...

request

Migrates the (currently broken) Travis CI setup to GitHub Actions. This also adds every major version of Node.js (v8 and up) to the testing matrix.

Change "rocessing" back into "Processing" in the History section of `.verb.md` (spelling was changed to the incorrect version in [4dc2a4f](https://github.com/micromatch/to-regex-range/commit/4dc2a4f237d8c9789837828663ef9937d657b72a)) not exactly the most groundbreaking PR but it was bugging...