ansi-regex
Regular expression for matching ANSI escape codes
Found 3041 results for regex
Regular expression for matching ANSI escape codes
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
Escape RegExp special characters
Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.
Regular expression for matching a shebang line
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Tiny JavaScript tokenizer.
Returns true if a string has an extglob.
Matches strings against configurable strings, globs, regular expressions, and/or functions
ES6 spec-compliant RegExp.prototype.flags shim.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
A regex to match any full character, considering weird character ranges.
Returns true if a value is a plain object, array or function.
Give a regex, get a robust predicate function that tests it against a string.
Regular expression for matching astral symbols
Compile regular expressions using the `s` (`dotAll`) flag to ES5.
Spec-compliant polyfill for String.prototype.matchAll
regexpu’s core functionality (i.e. `rewritePattern(pattern, flag)`), capable of translating ES6 Unicode regular expressions to ES5.
Generate regular expressions from regjsparser’s AST.
Compile regular expressions using named groups to ES5.
Compile regular expressions' unicodeSets (v) flag.
Generate JavaScript-compatible regular expressions based on a given set of Unicode symbols or code points.
Compile Unicode property escapes in Unicode regular expressions to ES5.
Compile regular expressions using duplicate named groups to index-based groups.
Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.
Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob patterns.
Parse regular expressions' unicodeSets (v) flag.
Tokenizes a string that represents a regular expression.
Compile inline regular expression modifiers
Check if a string has ANSI escape codes
detect possibly catastrophic, exponential-time regular expressions
Generate a regex from a string or array of strings.
Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)
Check if a value is a regular expression
Create a javascript regular expression for matching everything except for the given string.
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.
Returns true if a filepath is a windows UNC file path.
Regular expression for matching IP addresses (IPv4 & IPv6)
Regular expression for getting the root of a posix or windows filepath.
Generate regular expressions from regjsparser’s AST.
Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`
Regular expression for matching semver versions
Glob to regular expression with support for extended globs
Regular expression for matching reserved filename characters
Create random strings that match a given regular expression.
A library for teleporting rich data to another place.
Clean up regular expressions
Simple wildcard matching
gets the package name for a require statement
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
Extended regular expressions
Return true if a file path contains the given path.
Regex for matching HSLA colors.
Regex for matching RGBA color strings.
detect possibly catastrophic, exponential-time regular expressions
Regular expression for matching file names, with or without extension.
Returns an object with the (non-glob) base path and the actual pattern.
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.
Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.
Returns true if the given string is a POSIX bracket expression (POSIX character class).
Parse a glob pattern into an object of tokens.
The best regular expression (regex) for matching hex color values from string.
Returns true if a windows file path has invalid characters.
Cucumber Expressions - a simpler alternative to Regular Expressions
Regex for RGB color strings.
Regex for matching HSL colors.
Convert Oniguruma patterns to native JavaScript RegExp
Regex template tag with extended syntax, context-aware interpolation, and always-on best practices
Parse a github URL into an object.
Clone and modify a RegExp instance
dockerignore is a file filter library compatible with Docker and the node-ignore API
Recursive matching plugin for Regex+
Regular expression for matching HTML comments
Find multiple RegExp matches in a string
Make a regular expression time out if it takes too long to execute
🌈 Light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection
Returns true if a file path does not contain any invalid characters.
A regular expression to match all emoji-only symbols
A library for finite automata and regular expressions in the context of JS RegExp
Make a synchronous function have a timeout
A library for analysing JS RegExp
A library to find JS RegExp with super-linear worst-case time complexity for attack strings that repeat a single character.
Check if a string is an IP address
Regular expression for matching javascript require/import statements.
Parse, validate, traverse, transform, and optimize Oniguruma regular expressions
Regular expression for matching scoped npm package names
Returns true if the value passed is all whitespace.
Returns `true` if an array has a glob pattern.
ESLint plugin for finding RegExp mistakes and RegExp style guide violations.
Regular expression for parsing an `author` string into an object following npm conventions.
A node.js through stream that does basic streaming text search and replace and is chunk boundary friendly
Check whether a RegExp flag is supported
Parse an author, contributor, maintainer or other 'person' string into an object with name, email and url properties following npm conventions.
Return a regular expression to capture a function name.
Replace search occurrences with a replacement string.
Create a regular expression from a regular expression string.
Return a regular expression to match a newline character sequence.
Regular expression for matching URLs
Test if a value is a regular expression string.
Escape a regular expression string or pattern.
Regular expression to detect an extended-length path.
A collection of utilities for emojis
Test if a value is a regular expression.
Type-Level RegExp parser, matcher and permutation resolver
Emojibase utility functions for working with emoji characters.
Return a regular expression to parse a regular expression string.
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
Strip ANSI color codes from a string. No dependencies.
Array extras for regular expressions
Hash map of country ISO-3 codes to regular expression identifiers
Evergreen emoji regex patterns.
Generates an anchor for a markdown header.
Regular expression for matching CSS urls.
Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.
Updates a section inside a file with newer content while removing the old content.
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
A regular expression that matches a CHANGELOG filename
Regular expression for matching issue references
A source code transpiler that enables the use of ES2015 Unicode regular expressions in ES5.
Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.
Tiny glob->regex converter
Regex to validate that a URL is a git url.
Regular expression for matching JavaScript identifiers
The magical sticky regex-based parser generator 🧙
Regular expressions for matching against the XML Character Classes
A lite useragent regexes collection.
Regular expression for matching XML NCName
Spec-compliant polyfill for String.prototype.replaceAll ESnext proposal
Simple, flexible file copy utility
Escapes input characters to be used in regular expressions.
Provides a regex that can be used to test if a string is a valid NPM package name.
A robust ES3-compatible polyfill for the `RegExp.escape` proposal - see https://github.com/tc39/proposal-regex-escaping
3x as fast as `is-whitespace` and `whitespace-regex` thanks to `is-string-blank`. This package is a simple function that accepts an argument and returns `true` if it is a string AND it is not blank. Supports Node and Browser environments.
JavaScript APG, an ABNF Parser Generator
Regular expression for matching npm organization names
Escape RegExp special characters
Check if a string is an IP address
Covert Oniguruma-flavor Regexp to JavaScript native RegExp
Weapon regeX mutates regular expressions for use in mutation testing.
Optimize regex literals
Get all the matches for a regular expression in a string.
Create regex for template delimiters.
UUID check for Node and the browser
ESLint rules using Regular Expression
Check if a string is a valid filename
The goal of the package is to provide lightweight tools for validating strings denotings dates and time. It includes ISO 8601 datestring validation, simple YYYY-MM-DD date validation and time validation in hh:mm:ss.fff format. See details in readme.
Replace search occurrences with a replacement string.
Micro parser for detection of literal regexes
A tiny (349B) utility to rewrite `import` statements as `require()`s; via RegExp
Maintainable regular expressions for TypeScript and JavaScript.
Traverse object hierarchies using matching and callbacks.
JavaScript replaceLast function - Replaces last match for pattern in string with replacement
Tagged template string regular expression compiler.
WebAssembly port of Oniguruma regex library
utilities for generating regular expression
Replace text in files using strings, regexs or functions.
XML Schema pattern (regular expression) matcher
A tiny, PEG-like system for building language grammars with regexes.
Regular expressions for various Unicode character classes extracted from XRegExp
Bash-powered globbing for node.js
Replace Text with Regex in files before bundling.
Human-friendly replacements.
A fork of `recursive-copy`: Simple, flexible file copy utility
A isomorphic, bullet-proof, ninja-ready route parsing, matching, and reversing library for Javascript in Node and the browser.
Regular expression for matching javascript require statements.
Transform GLOB patterns to JavaScript regular expressions for fast file path matching.
Generate regular expressions that match a set of strings
A collection of regular expressions to match color syntax substrings from a text
colorParsley() • a lightweight yet versatile color parsing function with no dependencies. Takes various color strings, numbers, or objects, and turns them into simple arrays. Bonus utilities colorToHex() and colorToRGB() included
Routing for static site generators, build systems and task runners, heavily based on express.js routes but works with file objects. Used by Assemble, Verb, and Template.
Parses a regular expression string and returns a new regular expression.
Regular expression to parse a regular expression string.
escape regular expression characters
Regular expression for matching email addresses
Regular expression for matching CSS @imports
Replace text patterns with applause.
A tiny function for escaping a string to be used as the source in a regex.
A tool to enable the checking, inserting and removal of licenses
A gulp plugin to remove parts of code based on regular expressions.
Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.
RegExp for gfm (GitHub Flavored Markdown) fenced code blocks.
A CLI and library which tests helps score how vulnerable a regex pattern is to ReDoS attacks. Supported in the browser, Node and Deno.
Regexp acceptor for ECMAScript 2018
a regular expression that matches all the surrogate pairs and combining-marked characters in a string
bump RegEx with semver
Regular expressions.
Regular expression for matching JSDoc comment blocks and the code below them.
Regular expression for matching es6 template delimiters in a string.
Regular expression for matching JavaScript comments
Regular expression for matching HTML empty conditional comments
Filters file paths using globs, regular expressions, or custom criteria
Easy and small template engine for the browser and nodejs.
Regex for matching dot-directories, like `.git/`
Replace text patterns with applause.
Strings decorator (by regex) with: React components, HTML tags etc.
Human-friendly replacements.
Generates an anchor for a markdown header.
Easy and small template engine for the browser.
Replace matching strings and regexes in files
Sorting and matching utility using configurable string, glob, regular expression, and/or function matchers
Replace text patterns with applause.
A library to process strings with regular expressions.
Replace special characters to their simple characters
Check that given value is valid hex color, using `hex-color-regex` - the best regex for matching hex color values
Modify rollup output with find / replace dynamically
Replace text patterns with applause.
A regular expression that only matches a valid Github username
Change the contents of multiple files
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im
A regex to match the :emoji: snippets in a string.
JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v13.0.0’s categories, scripts, blocks, bidi, and other properties.
Node module for searching multi-line string using regex
JavaScript Extended regular expression engine - client side, server side and 'angular side' ready.
JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v16.0.0’s categories, scripts, blocks, bidi, and other properties.
JavaScript Regular expressions made easy
A isomorphic, bullet-proof, ninja-ready route parsing, matching, and reversing library for Javascript in Node and the browser.
Extends JavaScript RegExp with named groups, backreferences and replacement.
Regexp for data-uri
A gulp plugin that will delete all lines that matches one of the given regex filters.
Parsing Library for Typescript and Javascript.
RegExp object to match and validate URL(s).
A regular expression for valid domains.
Escape RegExp special characters. This is a fork of sindresorhus/escape-string-regexp, but with CommonJS support.
A typescript library for writing type-safe regular expressions using named capture groups
Regular expression for phone numbers.
Generate a random string match a given regular expression, suitable for mocking strings.
Create a matching function from a glob pattern, regex, string, array, object or function.
A collection of regular expressions
Filter an object values using glob patterns or with a `callback` function returns true.
Regular expression matching for email addresses. Maintained, configurable, more accurate, and browser-friendly alternative to email-regex. Works in Node v14+ and browsers. Made for Spam Scanner and Forward Email.
Regex to match a percentage value
Detect vulnerable regexes by querying a service hosted at Virginia Tech.
A simple library for escaping specical characters in strings for HTML, CSS, RegExp, String, URL.
Validates and converts Cucumber JSON for different Cucumber implementations and versions
ESLint rules to disallow unsafe regular expressions.
Search & replace across files with a CLI tool that makes you trust what you are doing.
Filter the keys of an object using glob patterns.
regexp-helper
regexp-helper-core
check RegExp ( regular expressions ) support
Get CSS urls from a string.
Generate RegExp for delimiters, to be used with templates, files or data streams.
A regex for matching punycode.
Does one simple thing - gets the flags from a regular expression. Useful for cloning and any library that uses or generates regular expressions that are created from other regular expressions.
\Q..\E (quotemeta) support for XRegExp
Replace your code using regular expressions.