Skip to content

hjtran/range2regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Javascript port of dimka665's numeric range to regex generator

To use, simply clone repository and source range2regex.js in your code


Example: ``` <script src="range2regex.js"> <script> console.log( split_to_patterns( 5, 10 ) ) // ["[5-9]", "10"] console.log( split_to_patterns( 5, 10 ).join('|') ) // "[5-9]|10" </script> ```

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published