Showing 1-20 of 1,660,809 packages
Turn a path string such as /user/:id or /user/:id(\d+) into a regular expression
path to regex madness
Ultra small and fast path to regex generation
Path-to-regex routing implementation for chubbyts-framework.
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
Generate a regex from a string or array of strings.
Regular expression for getting the root of a posix or windows filepath.
Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.
Create a javascript regular expression for matching everything except for the given string.
Compile ES2015 Unicode regex to ES5
detect possibly catastrophic, exponential-time regular expressions
Compile ES2015 sticky regex to an ES5 RegExp constructor
Compile regular expressions using the `s` (`dotAll`) flag to ES5.
Compile regular expressions using named groups to ES5.
Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in surprising performance improvements.
Compile Unicode property escapes in Unicode regular expressions to ES5.
Compile regular expressions using duplicate named groups to index-based groups.
Regular expression for matching astral symbols
Give a regex, get a robust predicate function that tests it against a string.