Skip to content
Ryan Davis edited this page Apr 23, 2014 · 1 revision

ORegEx is a JavaScript library which allows the use of a RegEx-like selector-string grammar on Objects, rather than strings. This is useful for things like type checking, or data validation. ORegEx uses a 3-step parser, which converts the selector-strings into ORegEx Objects. However, despite the fact that it has three phases to parsing, it parses remarkably fast. When parsing a 50-line selector-string one-million times, it took, on average, only about 200 milliseconds to complete the full one-million iterations. Because of its speed, and the way the module is written, you can use it in both NodeJS, and any Browser which supports JavaScript.

Clone this wiki locally