Showing 1-20 of 415,787 packages
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.
A term-regex function-factory actor
Give a regex, get a robust predicate function that tests it against a string.
A term-replace function-factory actor
detect possibly catastrophic, exponential-time regular expressions
Create a javascript regular expression for matching everything except for the given string.
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.
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.
Regular expression for matching astral symbols
Regular expression for getting the root of a posix or windows filepath.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
The best regular expression (regex) for matching hex color values from string.
Compile ES2015 Unicode regex to ES5
Regular expression for matching a shebang line
Compile ES2015 sticky regex to an ES5 RegExp constructor
Regular expression for matching file names, with or without extension.
Compile regular expressions using named groups to ES5.
Helper function to check for literal RegEx
Regular expression for matching ANSI escape codes