We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Regular expresions for human beings.
Regularity is designed as a node module and should be easily installable my a mere:
npm install regularity
Inyour code:
> var R = require('regularity'); var r = new R(); undefined > idNumber = r.startWith('').between([8,8],'digits').atMost(1,'letter').endWith('').done(); /^[0-9]{8,8}[A-Za-z]{0,1}$/ > idNumber.test('12345678Z'); true