JSPM

Found 2304 results for regexp

ansi-regex

Regular expression for matching ANSI escape codes

  • v6.2.2
  • 86.66
  • Published

emoji-regex

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

  • v10.6.0
  • 85.59
  • Published

js-tokens

Tiny JavaScript tokenizer.

  • v9.0.1
  • 81.63
  • Published

balanced-match

Match balanced character pairs, like "{" and "}"

  • v3.0.1
  • 81.62
  • Published

path-to-regexp

Express style path to RegExp utility

  • v8.3.0
  • 81.31
  • 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
  • 81.24
  • Published

anymatch

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

  • v3.1.3
  • 80.82
  • Published

shebang-regex

Regular expression for matching a shebang line

  • v4.0.0
  • 80.75
  • Published

ignore

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

  • v7.0.5
  • 80.26
  • Published

safe-regex-test

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

  • v1.1.0
  • 80.02
  • Published

kind-of

Get the native type of a value.

  • v6.0.3
  • 79.90
  • Published

micromatch

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

  • v4.0.8
  • 79.17
  • Published

is-regex

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

  • v1.2.1
  • 77.40
  • Published

regenerate

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

  • v1.4.2
  • 76.69
  • Published

regexpu-core

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

  • v6.4.0
  • 76.11
  • Published

clone-deep

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

  • v4.0.1
  • 76.08
  • Published

glob-to-regexp

Convert globs to regular expressions

  • v0.4.1
  • 75.87
  • Published

regjsgen

Generate regular expressions from regjsparser’s AST.

  • v0.8.0
  • 75.79
  • Published

regexpp

Regular expression parser for ECMAScript.

  • v3.2.0
  • 74.03
  • Published

ret

Tokenizes a string that represents a regular expression.

  • v0.5.0
  • 72.72
  • 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
  • 72.22
  • Published

regexp-tree

Regular Expressions parser in JavaScript

  • v0.1.27
  • 71.91
  • Published

ip-regex

Regular expression for matching IP addresses (IPv4 & IPv6)

  • v5.0.0
  • 71.69
  • 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
  • 71.43
  • Published

has-ansi

Check if a string has ANSI escape codes

  • v6.0.2
  • 71.41
  • Published

is-unc-path

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

  • v1.0.0
  • 71.10
  • Published

is-regexp

Check if a value is a regular expression

  • v3.1.0
  • 70.86
  • Published

@babel/regjsgen

Generate regular expressions from regjsparser’s AST.

  • v0.8.0
  • 70.16
  • Published

clean-regexp

Clean up regular expressions

  • v1.0.0
  • 69.64
  • Published

semver-regex

Regular expression for matching semver versions

  • v4.0.5
  • 69.52
  • Published

find-versions

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

  • v6.0.0
  • 69.49
  • Published

globrex

Glob to regular expression with support for extended globs

  • v0.1.2
  • 69.03
  • Published

path-root-regex

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

  • v0.1.2
  • 68.81
  • Published

randexp

Create random strings that match a given regular expression.

  • v0.5.3
  • 68.42
  • Published

matcher

Simple wildcard matching

  • v6.0.0
  • 67.83
  • Published

oniguruma-to-es

Convert Oniguruma patterns to native JavaScript RegExp

  • v4.3.3
  • 67.39
  • 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
  • 67.27
  • Published

parse-glob

Parse a glob pattern into an object of tokens.

  • v3.0.4
  • 66.77
  • Published

filename-regex

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

  • v2.0.1
  • 66.29
  • Published

rgb-regex

Regex for RGB color strings.

  • v1.0.1
  • 66.14
  • Published

hsl-regex

Regex for matching HSL colors.

  • v1.0.0
  • 66.14
  • Published

@balena/dockerignore

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

  • v1.0.2
  • 66.11
  • Published

rgba-regex

Regex for matching RGBA color strings.

  • v1.0.0
  • 66.02
  • Published

hsla-regex

Regex for matching HSLA colors.

  • v1.0.0
  • 66.02
  • Published

xregexp

Extended regular expressions

  • v5.1.2
  • 65.93
  • Published

hex-color-regex

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

  • v1.1.0
  • 65.75
  • Published

execall

Find multiple RegExp matches in a string

  • v3.0.0
  • 65.70
  • Published

is-posix-bracket

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

  • v0.1.1
  • 65.55
  • Published

glob-to-regex.js

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

  • v1.2.0
  • 65.43
  • Published

is-invalid-path

Returns true if a windows file path has invalid characters.

  • v1.0.2
  • 65.41
  • Published

regex

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

  • v6.0.1
  • 65.38
  • 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
  • 65.29
  • Published

fastparse

A very simple and stupid parser, based on a statemachine and regular expressions.

  • v1.1.2
  • 64.59
  • 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
  • 64.49
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 64.49
  • Published

regex-recursion

Recursive matching plugin for Regex+

  • v6.0.2
  • 64.35
  • Published

clone-regexp

Clone and modify a RegExp instance

  • v3.0.0
  • 63.87
  • Published

regexparam

A tiny (399B) utility that converts route patterns into RegExp. Limited alternative to `path-to-regexp` 🙇‍

  • v3.0.0
  • 63.79
  • Published

is-valid-path

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

  • v0.1.1
  • 63.59
  • Published

function-timeout

Make a synchronous function have a timeout

  • v1.0.2
  • 62.63
  • Published

refa

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

  • v0.12.1
  • 62.51
  • Published

super-regex

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

  • v1.0.0
  • 62.43
  • Published

emoji-regex-xs

A regular expression to match all emoji-only symbols

  • v2.0.1
  • 62.39
  • Published

deps-regex

Regular expression for matching javascript require/import statements.

  • v0.2.0
  • 62.30
  • Published

wildcard-match

A tiny and extremely fast library for compiling and matching basic glob patterns

  • v5.1.4
  • 62.22
  • Published

scoped-regex

Regular expression for matching scoped npm package names

  • v3.0.0
  • 62.11
  • Published

oniguruma-parser

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

  • v0.12.1
  • 62.04
  • Published

html-comment-regex

Regular expression for matching HTML comments

  • v1.1.2
  • 61.77
  • Published

eslint-plugin-regexp

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

  • v2.10.0
  • 60.78
  • Published

author-regex

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

  • v1.0.0
  • 59.90
  • 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
  • 59.88
  • Published

@stdlib/regexp-eol

Return a regular expression to match a newline character sequence.

  • v0.2.2
  • 58.57
  • Published

parenthesis

Parse parentheses from a string

  • v3.1.8
  • 58.57
  • Published

@stdlib/regexp-regexp

Return a regular expression to parse a regular expression string.

  • v0.2.2
  • 57.86
  • Published

matchit

Quickly parse & match URLs

  • v1.1.0
  • 57.52
  • Published

strip-color

Strip ANSI color codes from a string. No dependencies.

  • v0.1.0
  • 56.73
  • Published

regextras

Array extras for regular expressions

  • v0.8.0
  • 56.65
  • Published

typechecker

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

  • v9.3.0
  • 56.60
  • Published

css-url-regex

Regular expression for matching CSS urls.

  • v4.0.0
  • 55.69
  • Published

glob-regex

Tiny glob->regex converter

  • v0.3.2
  • 55.60
  • Published

is-git-url

Regex to validate that a URL is a git url.

  • v1.0.0
  • 55.02
  • 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
  • 54.41
  • 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
  • 54.41
  • 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
  • 54.34
  • Published

node-match-path

Dependency-free request URI matcher

    • v0.6.3
    • 54.27
    • Published

    ua-regexes-lite

    A lite useragent regexes collection.

    • v1.2.1
    • 54.19
    • Published

    weapon-regex

    Weapon regeX mutates regular expressions for use in mutation testing.

    • v1.3.6
    • 54.16
    • Published

    regexpu

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

    • v4.8.0
    • 53.54
    • Published

    issue-regex

    Regular expression for matching issue references

    • v4.3.0
    • 53.46
    • Published

    recursive-copy

    Simple, flexible file copy utility

    • v2.0.14
    • 53.42
    • Published

    browser-split

    Cross browser String#split implementation

    • v0.0.1
    • 53.36
    • Published

    pcre-to-regexp

    Converts PCRE regexp strings to JavaScript RegExp instances

    • v1.1.0
    • 53.32
    • Published

    string-kit

    A string manipulation toolbox, featuring a string formatter (inspired by sprintf), a variable inspector (output featuring ANSI colors and HTML) and various escape functions (shell argument, regexp, html, etc).

    • v0.19.3
    • 53.25
    • Published

    re2-wasm

    Google's RE2 library distributed as a WASM module

    • v1.0.2
    • 53.13
    • Published

    identifier-regex

    Regular expression for matching JavaScript identifiers

    • v1.0.1
    • 52.96
    • Published

    org-regex

    Regular expression for matching npm organization names

    • v1.0.0
    • 52.73
    • Published

    get-video-id

    Get the YouTube, Vimeo, Vine, VideoPress, TikTok, Microsoft Stream, Loom or Dailymotion video id from a url or embed string.

    • v4.1.7
    • 52.34
    • Published

    recheck

    The trustworthy ReDoS checker

    • v4.5.0
    • 51.18
    • Published

    delimiter-regex

    Create regex for template delimiters.

    • v2.0.0
    • 50.70
    • Published

    valid-filename

    Check if a string is a valid filename

    • v4.0.0
    • 50.62
    • Published

    perf-regexes

    Optimized and powerful regexes for JavaScript

    • v1.0.1
    • 50.49
    • Published

    @11ty/recursive-copy

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

    • v4.0.2
    • 49.97
    • Published

    skip-regex

    Micro parser for detection of literal regexes

    • v1.0.2
    • 49.94
    • Published

    regx

    Tagged template string regular expression compiler.

    • v1.0.4
    • 49.93
    • Published

    escape-regexp

    Escape regular expression special characters

      • v0.0.1
      • 49.65
      • Published

      match-index

      match capture groups and return index

      • v1.0.3
      • 49.15
      • Published

      applause

      Human-friendly replacements.

      • v2.0.4
      • 48.91
      • Published

      requires-regex

      Regular expression for matching javascript require statements.

      • v1.0.4
      • 48.75
      • Published

      synesthesia

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

      • v1.0.1
      • 48.29
      • Published

      email-regex

      Regular expression for matching email addresses

      • v6.1.0
      • 48.16
      • Published

      bash-glob

      Bash-powered globbing for node.js

      • v2.0.0
      • 47.94
      • Published

      string-escape-regex

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

      • v1.0.1
      • 47.64
      • Published

      utils-copy

      Copy or deep clone a value to an arbitrary depth.

      • v1.1.1
      • 47.28
      • Published

      utils-regex-from-string

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

      • v1.0.0
      • 47.28
      • Published

      grunt-replace

      Replace text patterns with applause.

      • v2.0.2
      • 46.91
      • Published

      unicoderegexp

      Regular expressions for various Unicode character classes extracted from XRegExp

      • v0.4.1
      • 46.90
      • Published

      regex-regex

      Regular expression to parse a regular expression string.

      • v1.0.0
      • 46.61
      • Published

      gfm-code-blocks

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

      • v1.0.0
      • 46.55
      • 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
      • 46.20
      • Published

      @stdlib/utils-copy

      Copy or deep clone a value to an arbitrary depth.

      • v0.2.2
      • 46.02
      • Published

      outmatch

      An extremely fast and lightweight glob-matching library with advanced features

      • v1.0.0
      • 45.45
      • Published

      vscode-regexpp

      Regular expression parser for ECMAScript.

      • v3.1.0
      • 45.08
      • Published

      gfm-code-block-regex

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

      • v1.0.0
      • 45.02
      • Published

      comment-regex

      Regular expression for matching JavaScript comments

      • v2.0.0
      • 44.91
      • Published

      es6-template-regex

      Regular expression for matching es6 template delimiters in a string.

      • v1.0.0
      • 44.17
      • Published

      next-applause

      Human-friendly replacements.

      • v2.2.4
      • 44.03
      • Published

      @unicode/unicode-13.0.0

      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.

      • v1.6.12
      • 43.34
      • Published

      broccoli-replace

      Replace text patterns with applause.

      • v2.0.2
      • 43.32
      • Published

      reserve

      Lightweight http server statically configurable using regular expressions

      • v2.3.4
      • 42.79
      • Published

      github-username-regex

      A regular expression that only matches a valid Github username

      • v1.0.0
      • 42.48
      • Published

      dotdir-regex

      Regex for matching dot-directories, like `.git/`

      • v1.0.1
      • 42.09
      • Published

      @unicode/unicode-16.0.0

      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.

      • v1.6.14
      • 41.76
      • Published

      anysort

      Sorting and matching utility using configurable string, glob, regular expression, and/or function matchers

      • v2.0.0
      • 41.43
      • Published

      @unicode/unicode-15.0.0

      JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v15.0.0’s categories, scripts, blocks, bidi, and other properties.

      • v1.6.14
      • 41.41
      • Published

      @putout/operator-regexp

      🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense

      • v2.0.0
      • 41.32
      • Published

      cli-regexp

      Utilities for manipulating regular expressions

      • v0.1.2
      • 41.22
      • Published

      regexp-escape

      Provides RegExp.escape function for quoting text for a regular expression.

      • v0.0.1
      • 40.97
      • Published

      @esm2cjs/escape-string-regexp

      Escape RegExp special characters. This is a fork of sindresorhus/escape-string-regexp, but with CommonJS support.

      • v5.0.0
      • 40.60
      • Published

      @dramaorg/delectus-culpa-reprehenderit

      [![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

      • v3.5.94
      • 40.37
      • Published

      rollup-plugin-modify

      Modify rollup output with find / replace dynamically

      • v3.0.0
      • 40.22
      • Published

      re-tree

      JavaScript Extended regular expression engine - client side, server side and 'angular side' ready.

      • v0.1.7
      • 40.17
      • Published

      @lvchengbin/escape

      A simple library for escaping specical characters in strings for HTML, CSS, RegExp, String, URL.

      • v0.0.3
      • 40.01
      • Published

      email-regex-safe

      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.

      • v4.0.0
      • 39.69
      • Published

      is-iso-date

      A simple utility to check if a string is an ISO-compliant date.

      • v0.0.1
      • 39.58
      • Published

      @jsbits/escape-regex-str

      Escapes special characters in a string, for matching substrings with a RegExp instance.

      • v1.0.3
      • 39.55
      • Published

      oniguruma

      oniguruma regular expression library

      • v7.2.3
      • 39.41
      • Published

      regexp-support

      check RegExp ( regular expressions ) support

      • v1.0.59
      • 39.34
      • Published

      next-json

      Next JavaScript Object Notation

      • v0.5.0
      • 39.31
      • Published

      @unicode/unicode-15.1.0

      JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v15.1.0’s categories, scripts, blocks, bidi, and other properties.

      • v1.6.14
      • 39.30
      • Published

      named-js-regexp

      Extends JavaScript RegExp with named groups, backreferences and replacement.

      • v1.3.5
      • 38.81
      • Published

      pyre-to-regexp

      Converts Python-like (re) regular expressions to JavaScript RegExp instances

      • v0.0.6
      • 38.75
      • Published

      is-hexcolor

      Check that given value is valid hex color, using `hex-color-regex` - the best regex for matching hex color values

      • v1.0.0
      • 38.65
      • Published

      regex-flags

      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.

      • v0.1.0
      • 38.51
      • Published

      is-match

      Create a matching function from a glob pattern, regex, string, array, object or function.

      • v1.0.0
      • 38.43
      • Published

      reparse

      A parser combinator library like Parsec.

        • v0.1.2
        • 38.42
        • Published

        regex-username

        Regular expression for usernames - it follows the same rules that GitHub uses.

        • v2.0.0
        • 38.41
        • Published

        cjk-conv

        convert chinese, japanese 簡繁日漢字轉換 ( merge/split submodule from node-novel, regexp-cjk, str-util )

        • v1.2.150
        • 38.21
        • Published

        delims

        Generate RegExp for delimiters, to be used with templates, files or data streams.

        • v0.4.2
        • 37.91
        • Published

        social-links

        Validate & sanitize social links

        • v1.15.1
        • 37.84
        • Published

        match-require

        find require calls from string using regexp

        • v2.1.0
        • 37.82
        • Published

        restream

        Regular Expression Detection & Replacement streams.

        • v4.0.0
        • 37.71
        • Published

        reregexp

        Generate a random string match a given regular expression, suitable for mocking strings.

        • v1.6.1
        • 37.57
        • Published

        domain-regex

        A regular expression for valid domains.

        • v0.0.1
        • 37.48
        • Published

        @unicode/unicode-14.0.0

        JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v14.0.0’s categories, scripts, blocks, bidi, and other properties.

        • v1.6.12
        • 37.48
        • Published

        hashtag-regex

        A regular expression to match hashtag identifiers as per the Unicode Standard.

        • v2.2.0
        • 37.46
        • Published

        regex-combined-emojis

        A regular expression that matches all emojis. Works in Javascript, .NET, and Java.

        • v1.6.0
        • 37.00
        • Published

        word-regex

        Regular expression for matching words in a string. Support for english, CJK and Cyrillic.

        • v0.1.2
        • 36.99
        • Published

        rexreplace

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

        • v7.1.13
        • 36.45
        • Published

        regex-but-with-words

        a lightweight package with no user dependecies that allows users to chain a verbose function to create a Regular Expression. It can also be used to create a verbose version of an existing regular expression for reference

        • v1.5.5
        • 36.39
        • Published

        regexp-cjk

        Generate JavaScript-compatible regular expressions with chinese/jp/zh/cn

        • v3.3.117
        • 36.36
        • Published

        path-to-regex

        Turn a path string such as /user/:id or /user/:id(\d+) into a regular expression

        • v1.3.8
        • 36.35
        • Published

        get-css-urls

        Get CSS urls from a string.

        • v1.0.1
        • 36.29
        • Published

        regexpp2

        Regular expression parser for ECMAScript 2018.

        • v1.3.35
        • 36.19
        • Published

        regexp-range

        create regex class range string `[一-十]` `[⓪-㊿]` ...

        • v2.0.7
        • 36.02
        • Published

        @adguard/re2-wasm

        Google's RE2 library distributed as a WASM module patched by AdGuard.

        • v1.2.0
        • 35.84
        • Published

        gulp-batch-replace

        A batch string/regexp replace plugin for gulp

        • v0.0.0
        • 35.50
        • Published

        @unicode/unicode-6.1.0

        JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v6.1.0’s categories, scripts, blocks, bidi, and other properties.

        • v1.6.12
        • 35.37
        • Published

        @unicode/unicode-10.0.0

        JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v10.0.0’s categories, scripts, blocks, bidi, and other properties.

        • v1.6.12
        • 35.33
        • Published

        regexp-sourcemaps

        Similar to str.replace(regex, replace) but with sourcemap support

        • v1.0.1
        • 35.23
        • Published

        grunt-regex-replace

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

        • v0.4.0
        • 35.02
        • Published

        available-regexp-flags

        Which regular expression flags does the current environment support?

        • v1.0.4
        • 34.97
        • Published

        compose-regexp

        A set of functions to build and compose complex regular expressions

        • v0.7.1
        • 34.95
        • Published