A tiny function for escaping a string to be used as the source in a regex.
Escape RegExp special characters
Regular expression for matching ANSI escape codes
Strip ANSI escape codes from a string
Check if a string has ANSI escape codes
Escape RegExp special characters
Escape RegExp special characters
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
Escapes input characters to be used in regular expressions.
Regular expression for matching a shebang line
Escape string for use in HTML
A regex to match any full character, considering weird character ranges.
Give a regex, get a robust predicate function that tests it against a string.
Tiny helpers for processing regex syntax
Escapes special characters in a string, for matching substrings with a RegExp instance.
A robust ES3-compatible polyfill for the `RegExp.escape` proposal - see https://github.com/tc39/proposal-regex-escaping
Plugin utilities for Rolldown
A simple library containing all known terminal ansi escape codes and sequences.
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
detect possibly catastrophic, exponential-time regular expressions
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.
Create a javascript regular expression for matching everything except for the given string.
fast and safe way to escape and unescape &<>'" chars