1.0.9 • Published 9 years ago

regex_for_range v1.0.9

Weekly downloads
5
License
ISC
Repository
github
Last release
9 years ago

regex-for-range

regex-for-range is npm library for getting instant regex for numeric range with same numeric length

Example :

var regNum = require('regex_for_range'), min = 1234, max = 91234;

console.log(regNum.regexGen(min, max)); // output : 1234-9|124-9|13-9{2}|2-80-9{3}|900-9{3}|910-1{2}|9120-2|91230-4|91-93-9