JSPM

Found 3042 results for regex replace

grunt-replace

Replace text patterns with applause.

  • v2.0.2
  • 377.44
  • Published

grunt-text-replace

Replace text in files using strings, regexs or functions.

  • v0.4.0
  • 344.72
  • Published

broccoli-replace

Replace text patterns with applause.

  • v2.0.2
  • 341.23
  • Published

gulp-regex-replace

Replace your code using regular expressions.

  • v0.2.3
  • 292.36
  • Published

replacestream

A node.js through stream that does basic streaming text search and replace and is chunk boundary friendly

  • v4.0.3
  • 278.62
  • Published

pattern-replace

Replace text patterns with a given replacement.

  • v0.1.2
  • 244.92
  • Published

rollup-plugin-modify

Modify rollup output with find / replace dynamically

  • v3.0.0
  • 236.20
  • Published

grunt-regex-replace

Grunt plugin to search and replace text content of files based on regular expression patterns

  • v0.4.0
  • 221.24
  • Published

@frsource/frs-replace

Simple wrapper around javascript replace with CLI usage support!

  • v5.1.71
  • 197.68
  • Published

replace-last

JavaScript replaceLast function - Replaces last match for pattern in string with replacement

  • v1.2.6
  • 187.33
  • Published

search-and-replace

command line utility to replace a regex with replacement within a found file in some path

  • v0.0.2
  • 173.42
  • Published

rexreplace

Search & replace across files with a CLI tool that makes you trust what you are doing.

  • v7.1.13
  • 171.29
  • Published

rollup-plugin-regexp

Modify rollup output with find / replace dynamically

  • v5.0.1
  • 147.02
  • Published

strings

Easily replace and transform :props in strings.

  • v0.4.2
  • 141.92
  • Published

frep

Find and replace utility for node.js. Transform strings by running multiple RegExp or string find-and-replace patterns on a string in sequence, reducing the final string to the accumulated result of each transformation. Patterns can be strings (or arrays

  • v0.2.3
  • 138.75
  • Published

metalsmith-one-replace

A single Metalsmith plugin for multiple types of replace action

  • v0.1.7
  • 131.69
  • Published

regex-replace-loader

A webpack loader to replace values in files using regex

  • v1.0.2
  • 127.04
  • Published

gulp-findreplace

Gulp plugin to find and replace stuff.

  • v1.5.0
  • 122.86
  • Published

specialtonormal

Replace special characters to normalized letters

  • v1.0.1
  • 119.56
  • Published

regex-replace

A simple CLI/Module for regex replacing strings in files & renaming files recursively

  • v2.3.1
  • 117.74
  • Published

grunt-pattern-replace

Allow you to parse a list of files and replace tokens based on specifics patterns.

  • v1.0.1
  • 113.47
  • Published

execall

Find multiple RegExp matches in a string

  • v3.0.0
  • 104.64
  • Published

replace-env

Command line utility for automatically injecting environment variables into files.

  • v1.0.4
  • 103.85
  • Published

xp

Command line regular expression search and replace

  • v1.0.1
  • 84.95
  • Published

ansi-regex

Regular expression for matching ANSI escape codes

  • v6.2.0
  • 82.98
  • Published

emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.

  • v10.4.0
  • 81.93
  • Published

better-replace

Use regular expressions to replace things in strings!

  • v1.0.2
  • 80.48
  • Published

fill-range

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`

  • v7.1.1
  • 78.58
  • Published

to-regex-range

Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.

  • v5.0.1
  • 78.19
  • Published

micromatch

Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.

  • v4.0.8
  • 78.06
  • Published

ignore

Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.

  • v7.0.5
  • 77.63
  • Published

shebang-regex

Regular expression for matching a shebang line

  • v4.0.0
  • 77.44
  • Published

preserve

Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.

  • v0.2.0
  • 76.96
  • Published

is-glob

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

  • v4.0.3
  • 76.64
  • Published

is-extglob

Returns true if a string has an extglob.

  • v2.1.1
  • 76.54
  • Published

js-tokens

Tiny JavaScript tokenizer.

  • v9.0.1
  • 76.41
  • Published

anymatch

Matches strings against configurable strings, globs, regular expressions, and/or functions

  • v3.1.3
  • 75.88
  • Published

safe-regex-test

Give a regex, get a robust predicate function that tests it against a string.

  • v1.1.0
  • 75.04
  • Published

is-regex

Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag

  • v1.2.1
  • 74.92
  • Published

char-regex

A regex to match any full character, considering weird character ranges.

  • v2.0.2
  • 74.72
  • Published

is-extendable

Returns true if a value is a plain object, array or function.

  • v1.0.1
  • 74.61
  • Published

astral-regex

Regular expression for matching astral symbols

  • v2.0.0
  • 73.52
  • Published

regexpu-core

regexpu’s core functionality (i.e. `rewritePattern(pattern, flag)`), capable of translating ES6 Unicode regular expressions to ES5.

  • v6.2.0
  • 72.98
  • Published

regjsgen

Generate regular expressions from regjsparser’s AST.

  • v0.8.0
  • 72.86
  • Published

regenerate

Generate JavaScript-compatible regular expressions based on a given set of Unicode symbols or code points.

  • v1.4.2
  • 71.92
  • Published

replacer-util

Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)

  • v1.4.0
  • 71.60
  • Published

clone-deep

Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.

  • v4.0.1
  • 71.58
  • Published

extglob

Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob patterns.

  • v3.0.0
  • 71.19
  • Published

ret

Tokenizes a string that represents a regular expression.

  • v0.5.0
  • 70.58
  • Published

has-ansi

Check if a string has ANSI escape codes

  • v6.0.0
  • 70.49
  • Published

safe-regex

detect possibly catastrophic, exponential-time regular expressions

  • v2.1.1
  • 70.25
  • Published

to-regex

Generate a regex from a string or array of strings.

  • v3.0.2
  • 69.88
  • Published

nanomatch

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)

  • v1.2.13
  • 69.87
  • Published

is-regexp

Check if a value is a regular expression

  • v3.1.0
  • 68.61
  • Published

unc-path-regex

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.

  • v0.1.2
  • 68.56
  • Published

h-inator

Replace every character in a string with h.

  • v0.1.0
  • 68.53
  • Published

regex-not

Create a javascript regular expression for matching everything except for the given string.

  • v1.0.2
  • 68.51
  • Published

is-unc-path

Returns true if a filepath is a windows UNC file path.

  • v1.0.0
  • 68.41
  • Published

ip-regex

Regular expression for matching IP addresses (IPv4 & IPv6)

  • v5.0.0
  • 68.21
  • Published

next-applause

Human-friendly replacements.

  • v2.2.4
  • 68.07
  • Published

@babel/regjsgen

Generate regular expressions from regjsparser’s AST.

  • v0.8.0
  • 67.75
  • Published

path-root-regex

Regular expression for getting the root of a posix or windows filepath.

  • v0.1.2
  • 67.72
  • Published

batch-replace

Perform multiple str.replace() with one operation

  • v1.1.3
  • 67.63
  • Published

find-versions

Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`

  • v6.0.0
  • 66.58
  • Published

semver-regex

Regular expression for matching semver versions

  • v4.0.5
  • 66.50
  • Published

globrex

Glob to regular expression with support for extended globs

  • v0.1.2
  • 66.30
  • Published

randexp

Create random strings that match a given regular expression.

  • v0.5.3
  • 65.78
  • Published

clean-regexp

Clean up regular expressions

  • v1.0.0
  • 65.09
  • Published

update-section

Updates a section inside a file with newer content while removing the old content.

  • v0.3.3
  • 64.96
  • Published

telejson

A library for teleporting rich data to another place.

  • v8.0.0
  • 64.87
  • Published

object-scan

Traverse object hierarchies using matching and callbacks.

  • v20.0.1
  • 64.83
  • Published

matcher

Simple wildcard matching

  • v5.0.0
  • 64.69
  • Published

replace-async

Like `string.replace`, but with asynchronous, concurrent replacement.

  • v1.1.1
  • 64.38
  • Published

is-dotfile

Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.

  • v2.0.0
  • 63.87
  • Published

xregexp

Extended regular expressions

  • v5.1.2
  • 63.84
  • Published

contains-path

Return true if a file path contains the given path.

  • v1.0.0
  • 63.60
  • Published

hsla-regex

Regex for matching HSLA colors.

  • v1.0.0
  • 63.56
  • Published

rgba-regex

Regex for matching RGBA color strings.

  • v1.0.0
  • 63.56
  • Published

regex-cache

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.

  • v0.4.4
  • 63.51
  • Published

filename-regex

Regular expression for matching file names, with or without extension.

  • v2.0.1
  • 63.27
  • Published

safe-regex2

detect possibly catastrophic, exponential-time regular expressions

  • v5.0.0
  • 63.27
  • Published

is-posix-bracket

Returns true if the given string is a POSIX bracket expression (POSIX character class).

  • v0.1.1
  • 63.23
  • Published

glob-base

Returns an object with the (non-glob) base path and the actual pattern.

  • v0.3.0
  • 63.22
  • Published

replace-text-cli

A text replacement command line utility with dry-run, mapping, and regex support.

  • v0.1.1
  • 62.98
  • Published

parse-glob

Parse a glob pattern into an object of tokens.

  • v3.0.4
  • 62.91
  • Published

is-invalid-path

Returns true if a windows file path has invalid characters.

  • v1.0.2
  • 62.69
  • Published

hex-color-regex

The best regular expression (regex) for matching hex color values from string.

  • v1.1.0
  • 62.64
  • Published

fez-replace

Replace text patterns with applause.

  • v2.0.1
  • 62.60
  • Published

oniguruma-to-es

Convert Oniguruma patterns to native JavaScript RegExp

  • v4.3.3
  • 62.25
  • Published

rgb-regex

Regex for RGB color strings.

  • v1.0.1
  • 62.19
  • Published

hsl-regex

Regex for matching HSL colors.

  • v1.0.0
  • 62.19
  • Published

regex

Regex template tag with extended syntax, context-aware interpolation, and always-on best practices

  • v6.0.1
  • 61.95
  • Published

@balena/dockerignore

dockerignore is a file filter library compatible with Docker and the node-ignore API

  • v1.0.2
  • 61.79
  • Published

clone-regexp

Clone and modify a RegExp instance

  • v3.0.0
  • 61.63
  • Published

regex-recursion

Recursive matching plugin for Regex+

  • v6.0.2
  • 61.39
  • Published

html-comment-regex

Regular expression for matching HTML comments

  • v1.1.2
  • 61.25
  • Published

@speed-highlight/core

🌈 Light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection

  • v1.2.7
  • 61.14
  • Published

super-regex

Make a regular expression time out if it takes too long to execute

  • v1.0.0
  • 61.11
  • Published

is-valid-path

Returns true if a file path does not contain any invalid characters.

  • v0.1.1
  • 60.94
  • Published

emoji-regex-xs

A regular expression to match all emoji-only symbols

  • v2.0.1
  • 60.59
  • Published

refa

A library for finite automata and regular expressions in the context of JS RegExp

  • v0.12.1
  • 60.56
  • Published

scslre

A library to find JS RegExp with super-linear worst-case time complexity for attack strings that repeat a single character.

  • v0.3.0
  • 60.42
  • Published

function-timeout

Make a synchronous function have a timeout

  • v1.0.2
  • 60.25
  • Published

deps-regex

Regular expression for matching javascript require/import statements.

  • v0.2.0
  • 59.98
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 59.94
  • Published

is-whitespace

Returns true if the value passed is all whitespace.

  • v0.3.0
  • 59.71
  • Published

oniguruma-parser

Parse, validate, traverse, transform, and optimize Oniguruma regular expressions

  • v0.12.1
  • 59.47
  • Published

scoped-regex

Regular expression for matching scoped npm package names

  • v3.0.0
  • 59.47
  • Published

has-glob

Returns `true` if an array has a glob pattern.

  • v1.0.0
  • 58.97
  • Published

eslint-plugin-regexp

ESLint plugin for finding RegExp mistakes and RegExp style guide violations.

  • v2.10.0
  • 57.90
  • Published

markdown-it-find-and-replace

Basic Find and Replace functionality for Markdown It via Regex. Great for build-process text expanders

  • v1.0.2
  • 57.61
  • Published

author-regex

Regular expression for parsing an `author` string into an object following npm conventions.

  • v1.0.0
  • 57.38
  • Published

fast-replace

Recursive find and replace command line utility

  • v3.0.4
  • 56.82
  • Published

parse-author

Parse an author, contributor, maintainer or other 'person' string into an object with name, email and url properties following npm conventions.

  • v2.0.0
  • 56.79
  • Published

applause

Human-friendly replacements.

  • v2.0.4
  • 56.13
  • Published

@stdlib/regexp-eol

Return a regular expression to match a newline character sequence.

  • v0.2.2
  • 55.79
  • Published

url-regex

Regular expression for matching URLs

  • v5.0.0
  • 55.75
  • Published

regexify-string

Strings decorator (by regex) with: React components, HTML tags etc.

  • v1.0.19
  • 55.54
  • Published

type-level-regexp

Type-Level RegExp parser, matcher and permutation resolver

  • v0.1.17
  • 55.16
  • Published

@stdlib/regexp-regexp

Return a regular expression to parse a regular expression string.

  • v0.2.2
  • 55.11
  • Published

url-pattern

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.

  • v1.0.3
  • 55.03
  • Published

emojibase

Emojibase utility functions for working with emoji characters.

  • v16.0.0
  • 55.02
  • Published

strip-color

Strip ANSI color codes from a string. No dependencies.

  • v0.1.0
  • 54.66
  • Published

regextras

Array extras for regular expressions

  • v0.8.0
  • 54.62
  • Published

country-regex

Hash map of country ISO-3 codes to regular expression identifiers

  • v1.1.0
  • 54.53
  • Published

emojibase-regex

Evergreen emoji regex patterns.

  • v16.0.0
  • 54.28
  • Published

css-url-regex

Regular expression for matching CSS urls.

  • v4.0.0
  • 53.86
  • Published

highlight-words

Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.

  • v2.0.0
  • 53.79
  • Published

gfm-code-blocks

Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.

  • v1.0.0
  • 53.34
  • Published

typechecker

Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

  • v9.3.0
  • 53.13
  • Published

gfm-code-block-regex

RegExp for gfm (GitHub Flavored Markdown) fenced code blocks.

  • v1.0.0
  • 52.98
  • Published

issue-regex

Regular expression for matching issue references

  • v4.3.0
  • 52.89
  • Published

regexpu

A source code transpiler that enables the use of ES2015 Unicode regular expressions in ES5.

  • v4.8.0
  • 52.26
  • Published

url-regex-safe

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.

  • v4.0.0
  • 52.16
  • Published

glob-regex

Tiny glob->regex converter

  • v0.3.2
  • 52.05
  • Published

is-git-url

Regex to validate that a URL is a git url.

  • v1.0.0
  • 51.98
  • Published

identifier-regex

Regular expression for matching JavaScript identifiers

  • v1.0.0
  • 51.92
  • Published

xml-char-classes

Regular expressions for matching against the XML Character Classes

  • v3.0.0
  • 51.71
  • Published

reghex

The magical sticky regex-based parser generator 🧙

  • v3.0.2
  • 51.67
  • Published

ua-regexes-lite

A lite useragent regexes collection.

  • v1.2.1
  • 51.38
  • Published

ncname

Regular expression for matching XML NCName

  • v3.0.0
  • 51.14
  • Published

recursive-copy

Simple, flexible file copy utility

  • v2.0.14
  • 51.07
  • Published

is-string-and-not-blank

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.

  • v0.0.2
  • 51.04
  • Published

regex-escape

Escapes input characters to be used in regular expressions.

  • v3.4.11
  • 50.84
  • Published

org-regex

Regular expression for matching npm organization names

  • v1.0.0
  • 50.79
  • Published

apg-js

JavaScript APG, an ABNF Parser Generator

  • v4.4.0
  • 50.77
  • Published

regexp.escape

A robust ES3-compatible polyfill for the `RegExp.escape` proposal - see https://github.com/tc39/proposal-regex-escaping

  • v2.0.1
  • 50.76
  • Published

package-name-regex

Provides a regex that can be used to test if a string is a valid NPM package name.

  • v4.0.3
  • 50.72
  • Published

oniguruma-to-js

Covert Oniguruma-flavor Regexp to JavaScript native RegExp

  • v0.4.3
  • 50.34
  • Published

weapon-regex

Weapon regeX mutates regular expressions for use in mutation testing.

  • v1.3.3
  • 50.05
  • Published

match-all

Get all the matches for a regular expression in a string.

  • v1.2.7
  • 49.33
  • Published

delimiter-regex

Create regex for template delimiters.

  • v2.0.0
  • 49.06
  • Published

is-uuid

UUID check for Node and the browser

  • v1.0.2
  • 49.02
  • Published

valid-filename

Check if a string is a valid filename

  • v4.0.0
  • 48.04
  • Published

iso-datestring-validator

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.

  • v2.2.2
  • 48.01
  • Published

rewrite-imports

A tiny (349B) utility to rewrite `import` statements as `require()`s; via RegExp

  • v3.0.0
  • 48.00
  • Published

skip-regex

Micro parser for detection of literal regexes

  • v1.0.2
  • 47.88
  • Published

ts-regex-builder

Maintainable regular expressions for TypeScript and JavaScript.

  • v1.8.2
  • 47.65
  • Published

async-regex-replace

regex replacements using asynchronous callback functions

  • v3.0.0
  • 47.46
  • Published

onigasm

WebAssembly port of Oniguruma regex library

  • v2.2.5
  • 46.82
  • Published

regx

Tagged template string regular expression compiler.

  • v1.0.4
  • 46.81
  • Published

regexp-util

utilities for generating regular expression

  • v2.0.3
  • 46.78
  • Published

xspattern

XML Schema pattern (regular expression) matcher

  • v3.1.0
  • 46.56
  • Published

mismatch

A JavaScript package to return captured groups of a regular expression as an object.

  • v1.2.0
  • 46.47
  • Published

unicoderegexp

Regular expressions for various Unicode character classes extracted from XRegExp

  • v0.4.1
  • 46.39
  • Published

bash-glob

Bash-powered globbing for node.js

  • v2.0.0
  • 46.35
  • Published

grammex

A tiny, PEG-like system for building language grammars with regexes.

  • v3.1.10
  • 46.35
  • Published

route-parser

A isomorphic, bullet-proof, ninja-ready route parsing, matching, and reversing library for Javascript in Node and the browser.

  • v0.0.5
  • 46.10
  • Published

@11ty/recursive-copy

A fork of `recursive-copy`: Simple, flexible file copy utility

  • v4.0.2
  • 46.10
  • Published

file-str-replace

standalone module to replace a string in a file

  • v0.2.0
  • 46.09
  • Published

requires-regex

Regular expression for matching javascript require statements.

  • v1.0.4
  • 46.06
  • Published

glob-to-regex.js

Transform GLOB patterns to JavaScript regular expressions for fast file path matching.

  • v1.0.1
  • 46.06
  • Published

regexgen

Generate regular expressions that match a set of strings

  • v1.3.0
  • 45.94
  • Published

synesthesia

A collection of regular expressions to match color syntax substrings from a text

  • v1.0.1
  • 45.87
  • Published

replacements

Transform a string with an array of replacement patterns.

  • v0.2.1
  • 45.79
  • Published

colorparsley

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

  • v0.1.8
  • 45.54
  • Published

en-route

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.

  • v3.2.0
  • 45.27
  • Published

utils-regex-from-string

Parses a regular expression string and returns a new regular expression.

  • v1.0.0
  • 45.13
  • Published

regex-regex

Regular expression to parse a regular expression string.

  • v1.0.0
  • 45.11
  • Published

quotemeta

escape regular expression characters

  • v0.0.0
  • 45.04
  • Published

email-regex

Regular expression for matching email addresses

  • v6.1.0
  • 45.00
  • Published

import-regex

Regular expression for matching CSS @imports

  • v1.1.0
  • 44.64
  • Published

stream-search-helper

Aids streams searching with string or regex delimiters.

  • v0.7.1
  • 44.33
  • Published

license-check-and-add

A tool to enable the checking, inserting and removal of licenses

  • v4.0.5
  • 44.32
  • Published

string-escape-regex

A tiny function for escaping a string to be used as the source in a regex.

  • v1.0.1
  • 44.17
  • Published

gulp-strip-code

A gulp plugin to remove parts of code based on regular expressions.

  • v0.1.4
  • 44.09
  • Published

redos-detector

A CLI and library which tests helps score how vulnerable a regex pattern is to ReDoS attacks. Supported in the browser, Node and Deno.

  • v6.1.2
  • 43.49
  • Published

restream

Regular Expression Detection & Replacement streams.

  • v4.0.0
  • 43.39
  • Published

multichar-regex

a regular expression that matches all the surrogate pairs and combining-marked characters in a string

  • v2.0.0
  • 43.20
  • Published

bump-regex

bump RegEx with semver

  • v4.1.0
  • 43.05
  • Published

jsdoc-regex

Regular expression for matching JSDoc comment blocks and the code below them.

  • v1.0.1
  • 42.84
  • Published

censoring

Censor or highlight words and other patterns intelligently.

  • v1.1.1
  • 42.36
  • Published

es6-template-regex

Regular expression for matching es6 template delimiters in a string.

  • v1.0.0
  • 42.25
  • Published

comment-regex

Regular expression for matching JavaScript comments

  • v2.0.0
  • 42.18
  • Published