module::RegexpObject
Class which encapsulates a trivial logical combination( expression ) and regular expressions which may be applied to a string to tell does that string satisfies regular expressions as well as the logic. RegexpObject provides functionality to compose, combine several instances of the class, extend it, apply to a string and other. Use it to treat multiple conditions as a single object. Refactoring required.
Try out from the repository
git clone https://github.com/Wandalen/wRegexpObject
cd wRegexpObject
npm install
node sample/trivial/Sample.s
To add to your project
npm add 'wRegexpObject@alpha'