Generate random string based on given regex.
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
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
Give a regex, get a robust predicate function that tests it against a string.
Generate a regex from a string or array of strings.
detect possibly catastrophic, exponential-time regular expressions
Create a javascript regular expression for matching everything except for the given string.
Make a regular expression time out if it takes too long to execute
Regular expression for matching ANSI escape codes
Plugin utilities for Rolldown
Regular expression for matching semver versions
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.
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 ES2015 Unicode regex to ES5
Compile ES2015 sticky regex to an ES5 RegExp constructor
Compile regular expressions using named groups to ES5.
Escape RegExp special characters
Compile regular expressions using the `s` (`dotAll`) flag to ES5.
Compile Unicode property escapes in Unicode regular expressions to ES5.
Regular expression for getting the root of a posix or windows filepath.
Generate a minimal regex matching a set of strings
Regexp#examples returns a list of "all" strings that are matched by the regex. Regexp#random_example returns one, random string that matches.
Regex in, string out
Simple string core extension to help out when working with regex capture groups. Saves checking for size or nil every time you might have a capture group.
Calculates the permutations of a strings based on a key string / regex
Fuzzy matcher looks for fuzzy matches such as words, digits, etc. in a string of text using regex or string.
DiffMatcher matches input data (eg. from a JSON API) against values, ranges, classes, regexes, procs, custom matchers and/or easily composed, nested combinations thereof to produce an easy to read diff string.
Fun project to compare two SemVer strings with a bit of regex magic.
A chainable guard clause DSL for validating method preconditions with built-in checks for nil, empty, numeric bounds, type checking, range, length, regex matching, inclusion, custom predicates, string prefix/suffix, and soft mode error collection.
Provides regex-based searches on sequences of arbitrary objects. Developed for querying Ruby token streams, object_regex only requires that the objects you are searching implement a single method that returns a string.
The saml2 library is yet another SAML library for Ruby, with an emphasis on _not_ re-implementing XML, especially XML Security, _not_ parsing via Regex or generating XML by string concatenation, _not_ serializing/re-parsing multiple times just to get it into the correct format to sign or validate.
This Rack middleware allows you to run specific apps when the request domain matches a given filter. The filter can be provided in a number of ways, for example as a regex or as a string.