Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
Regular expression for matching a shebang line
A regex to match any full character, considering weird character ranges.
Tiny helpers for processing regex syntax
Give a regex, get a robust predicate function that tests it against a string.
Regular expression for matching ANSI escape codes
Plugin utilities for Rolldown
Regular expression for matching astral symbols
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.
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
Create a javascript regular expression for matching everything except for the given string.
detect possibly catastrophic, exponential-time regular expressions
Make a regular expression time out if it takes too long to execute
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.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Generate a regex from a string or array of strings.
Strip ANSI escape codes from a string
A module that parses a string as regular expression and returns the parsed value.
Regular expression for matching file names, with or without extension.
Regular expression for getting the root of a posix or windows filepath.
Regular expression for matching semver versions
The best regular expression (regex) for matching hex color values from string.
A stylelint processor for styled-components
Compile ES2015 Unicode regex to ES5