Skip to content

dcjohnson/url-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

url-regex

A small node.js regex library for a url router.

#example

var regex = require('tiny-url-regex');
var ndfa = regex.Ndfa('abc[ae](1|3)w'); // Any valid regex rule.
ndfa.generateStates();
var isValid = ndfa.testString('abcaeaeaeeea3w'); // valid
var isValid2 = ndfa.testString('abc'); //invalid

I pity anyone who uses this for production.

Feel free to improve it!

About

A small node.js regex library for a url router.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published