JSPM

Found 2297 results for regexp

ansi-regex

Regular expression for matching ANSI escape codes

  • v6.2.0
  • 86.07
  • Published

emoji-regex

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

  • v10.4.0
  • 84.98
  • Published

kind-of

Get the native type of a value.

  • v6.0.3
  • 82.76
  • 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
  • 82.24
  • Published

path-to-regexp

Express style path to RegExp utility

  • v8.2.0
  • 81.95
  • Published

micromatch

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

  • v4.0.8
  • 81.77
  • Published

shebang-regex

Regular expression for matching a shebang line

  • v4.0.0
  • 81.45
  • Published

balanced-match

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

  • v3.0.1
  • 81.14
  • Published

js-tokens

Tiny JavaScript tokenizer.

  • v9.0.1
  • 80.55
  • Published

anymatch

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

  • v3.1.3
  • 79.98
  • Published

ignore

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

  • v7.0.5
  • 79.91
  • Published

safe-regex-test

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

  • v1.1.0
  • 79.07
  • Published

is-regex

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

  • v1.2.1
  • 77.12
  • Published

regexpu-core

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

  • v6.2.0
  • 76.76
  • Published

regjsgen

Generate regular expressions from regjsparser’s AST.

  • v0.8.0
  • 76.64
  • Published

glob-to-regexp

Convert globs to regular expressions

  • v0.4.1
  • 76.55
  • Published

regenerate

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

  • v1.4.2
  • 75.82
  • Published

clone-deep

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

  • v4.0.1
  • 75.42
  • Published

has-ansi

Check if a string has ANSI escape codes

  • v6.0.0
  • 73.84
  • Published

regexpp

Regular expression parser for ECMAScript.

  • v3.2.0
  • 73.58
  • 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
  • 73.49
  • Published

ret

Tokenizes a string that represents a regular expression.

  • v0.5.0
  • 72.66
  • Published

is-unc-path

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

  • v1.0.0
  • 71.95
  • Published

ip-regex

Regular expression for matching IP addresses (IPv4 & IPv6)

  • v5.0.0
  • 71.57
  • 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.11
  • Published

regexp-tree

Regular Expressions parser in JavaScript

  • v0.1.27
  • 70.96
  • Published

path-root-regex

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

  • v0.1.2
  • 70.95
  • Published

is-regexp

Check if a value is a regular expression

  • v3.1.0
  • 70.62
  • Published

@babel/regjsgen

Generate regular expressions from regjsparser’s AST.

  • v0.8.0
  • 70.27
  • Published

find-versions

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

  • v6.0.0
  • 70.03
  • Published

semver-regex

Regular expression for matching semver versions

  • v4.0.5
  • 69.95
  • Published

randexp

Create random strings that match a given regular expression.

  • v0.5.3
  • 69.18
  • Published

clean-regexp

Clean up regular expressions

  • v1.0.0
  • 68.59
  • Published

globrex

Glob to regular expression with support for extended globs

  • v0.1.2
  • 68.25
  • Published

matcher

Simple wildcard matching

  • v5.0.0
  • 68.05
  • 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
  • 66.92
  • 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
  • 66.91
  • Published

is-posix-bracket

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

  • v0.1.1
  • 66.50
  • Published

filename-regex

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

  • v2.0.1
  • 66.39
  • Published

parse-glob

Parse a glob pattern into an object of tokens.

  • v3.0.4
  • 66.32
  • Published

is-invalid-path

Returns true if a windows file path has invalid characters.

  • v1.0.2
  • 65.93
  • Published

hsla-regex

Regex for matching HSLA colors.

  • v1.0.0
  • 65.92
  • Published

rgba-regex

Regex for matching RGBA color strings.

  • v1.0.0
  • 65.92
  • Published

hex-color-regex

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

  • v1.1.0
  • 65.73
  • Published

xregexp

Extended regular expressions

  • v5.1.2
  • 65.71
  • Published

oniguruma-to-es

Convert Oniguruma patterns to native JavaScript RegExp

  • v4.3.3
  • 65.59
  • Published

rgb-regex

Regex for RGB color strings.

  • v1.0.1
  • 65.56
  • Published

hsl-regex

Regex for matching HSL colors.

  • v1.0.0
  • 65.56
  • Published

regex

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

  • v6.0.1
  • 65.16
  • Published

@balena/dockerignore

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

  • v1.0.2
  • 65.11
  • Published

execall

Find multiple RegExp matches in a string

  • v3.0.0
  • 64.89
  • Published

fastparse

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

  • v1.1.2
  • 64.47
  • Published

html-comment-regex

Regular expression for matching HTML comments

  • v1.1.2
  • 64.17
  • Published

super-regex

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

  • v1.0.0
  • 64.02
  • 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
  • 63.66
  • Published

emoji-regex-xs

A regular expression to match all emoji-only symbols

  • v2.0.1
  • 63.48
  • Published

refa

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

  • v0.12.1
  • 63.44
  • Published

clone-regexp

Clone and modify a RegExp instance

  • v3.0.0
  • 63.43
  • Published

regexparam

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

  • v3.0.0
  • 63.29
  • Published

is-valid-path

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

  • v0.1.1
  • 63.21
  • Published

regex-recursion

Recursive matching plugin for Regex+

  • v6.0.2
  • 63.19
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 63.19
  • Published

scoped-regex

Regular expression for matching scoped npm package names

  • v3.0.0
  • 62.55
  • Published

oniguruma-parser

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

  • v0.12.1
  • 62.30
  • Published

function-timeout

Make a synchronous function have a timeout

  • v1.0.2
  • 62.01
  • Published

deps-regex

Regular expression for matching javascript require/import statements.

  • v0.2.0
  • 61.74
  • Published

wildcard-match

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

  • v5.1.4
  • 60.34
  • Published

eslint-plugin-regexp

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

  • v2.10.0
  • 59.60
  • 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.58
  • Published

author-regex

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

  • v1.0.0
  • 59.51
  • Published

parenthesis

Parse parentheses from a string

  • v3.1.8
  • 58.50
  • Published

@stdlib/regexp-regexp

Return a regular expression to parse a regular expression string.

  • v0.2.2
  • 57.96
  • Published

@stdlib/regexp-eol

Return a regular expression to match a newline character sequence.

  • v0.2.2
  • 57.87
  • Published

strip-color

Strip ANSI color codes from a string. No dependencies.

  • v0.1.0
  • 57.49
  • Published

regextras

Array extras for regular expressions

  • v0.8.0
  • 57.44
  • Published

matchit

Quickly parse & match URLs

  • v1.1.0
  • 56.01
  • Published

typechecker

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

  • v9.3.0
  • 56.00
  • Published

css-url-regex

Regular expression for matching CSS urls.

  • v4.0.0
  • 55.86
  • Published

issue-regex

Regular expression for matching issue references

  • v4.3.0
  • 55.41
  • Published

pcre-to-regexp

Converts PCRE regexp strings to JavaScript RegExp instances

  • v1.1.0
  • 54.99
  • 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
  • 54.89
  • Published

glob-regex

Tiny glob->regex converter

  • v0.3.2
  • 54.87
  • Published

regexpu

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

  • v4.8.0
  • 54.75
  • Published

is-git-url

Regex to validate that a URL is a git url.

  • v1.0.0
  • 54.53
  • Published

identifier-regex

Regular expression for matching JavaScript identifiers

  • v1.0.0
  • 54.39
  • Published

node-match-path

Dependency-free request URI matcher

    • v0.6.3
    • 54.35
    • Published

    ua-regexes-lite

    A lite useragent regexes collection.

    • v1.2.1
    • 53.91
    • 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
    • 53.78
    • Published

    recursive-copy

    Simple, flexible file copy utility

    • v2.0.14
    • 53.72
    • 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
    • 53.69
    • 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
    • 53.46
    • Published

    org-regex

    Regular expression for matching npm organization names

    • v1.0.0
    • 53.42
    • 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
    • 53.01
    • Published

    oniguruma-to-js

    Covert Oniguruma-flavor Regexp to JavaScript native RegExp

    • v0.4.3
    • 52.95
    • Published

    browser-split

    Cross browser String#split implementation

    • v0.0.1
    • 52.83
    • Published

    weapon-regex

    Weapon regeX mutates regular expressions for use in mutation testing.

    • v1.3.3
    • 52.77
    • Published

    escape-regexp

    Escape regular expression special characters

      • v0.0.1
      • 51.61
      • Published

      re2-wasm

      Google's RE2 library distributed as a WASM module

      • v1.0.2
      • 51.61
      • Published

      delimiter-regex

      Create regex for template delimiters.

      • v2.0.0
      • 50.89
      • Published

      skip-regex

      Micro parser for detection of literal regexes

      • v1.0.2
      • 50.36
      • Published

      recheck

      The trustworthy ReDoS checker

      • v4.5.0
      • 50.25
      • Published

      perf-regexes

      Optimized and powerful regexes for JavaScript

      • v1.0.1
      • 49.86
      • Published

      valid-filename

      Check if a string is a valid filename

      • v4.0.0
      • 49.45
      • Published

      regx

      Tagged template string regular expression compiler.

      • v1.0.4
      • 49.34
      • Published

      match-index

      match capture groups and return index

      • v1.0.3
      • 49.25
      • Published

      applause

      Human-friendly replacements.

      • v2.0.4
      • 48.67
      • Published

      bash-glob

      Bash-powered globbing for node.js

      • v2.0.0
      • 48.63
      • Published

      unicoderegexp

      Regular expressions for various Unicode character classes extracted from XRegExp

      • v0.4.1
      • 48.60
      • Published

      @11ty/recursive-copy

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

      • v4.0.2
      • 48.37
      • Published

      requires-regex

      Regular expression for matching javascript require statements.

      • v1.0.4
      • 48.33
      • Published

      glob-to-regex.js

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

      • v1.0.1
      • 48.32
      • Published

      synesthesia

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

      • v1.0.1
      • 48.25
      • Published

      utils-copy

      Copy or deep clone a value to an arbitrary depth.

      • v1.1.1
      • 48.08
      • Published

      regex-regex

      Regular expression to parse a regular expression string.

      • v1.0.0
      • 47.44
      • Published

      email-regex

      Regular expression for matching email addresses

      • v6.1.0
      • 47.42
      • Published

      utils-regex-from-string

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

      • v1.0.0
      • 47.35
      • 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.60
      • Published

      @stdlib/utils-copy

      Copy or deep clone a value to an arbitrary depth.

      • v0.2.2
      • 46.57
      • Published

      grunt-replace

      Replace text patterns with applause.

      • v2.0.2
      • 46.28
      • Published

      gfm-code-block-regex

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

      • v1.0.0
      • 45.82
      • Published

      string-escape-regex

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

      • v1.0.1
      • 45.82
      • Published

      gfm-code-blocks

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

      • v1.0.0
      • 45.72
      • Published

      vscode-regexpp

      Regular expression parser for ECMAScript.

      • v3.1.0
      • 45.31
      • Published

      outmatch

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

      • v1.0.0
      • 44.43
      • Published

      comment-regex

      Regular expression for matching JavaScript comments

      • v2.0.0
      • 43.75
      • Published

      es6-template-regex

      Regular expression for matching es6 template delimiters in a string.

      • v1.0.0
      • 43.49
      • Published

      reserve

      Lightweight http server statically configurable using regular expressions

      • v2.3.3
      • 42.72
      • Published

      dotdir-regex

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

      • v1.0.1
      • 42.46
      • Published

      next-applause

      Human-friendly replacements.

      • v2.2.4
      • 42.09
      • Published

      anysort

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

      • v2.0.0
      • 41.97
      • Published

      broccoli-replace

      Replace text patterns with applause.

      • v2.0.2
      • 41.93
      • 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.75
      • Published

      rollup-plugin-modify

      Modify rollup output with find / replace dynamically

      • v3.0.0
      • 41.33
      • Published

      github-username-regex

      A regular expression that only matches a valid Github username

      • v1.0.0
      • 41.27
      • 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.7
      • 41.02
      • Published

      cli-regexp

      Utilities for manipulating regular expressions

      • v0.1.2
      • 40.96
      • 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
      • 40.64
      • Published

      @jsbits/escape-regex-str

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

      • v1.0.3
      • 40.47
      • 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.7
      • 40.41
      • 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.30
      • Published

      re-tree

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

      • v0.1.7
      • 39.94
      • Published

      next-json

      Next JavaScript Object Notation

      • v0.4.0
      • 39.86
      • Published

      pyre-to-regexp

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

      • v0.0.6
      • 39.80
      • Published

      named-js-regexp

      Extends JavaScript RegExp with named groups, backreferences and replacement.

      • v1.3.5
      • 39.78
      • Published

      domain-regex

      A regular expression for valid domains.

      • v0.0.1
      • 39.61
      • 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
      • 39.59
      • Published

      is-iso-date

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

      • v0.0.1
      • 39.50
      • Published

      regexp-escape

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

      • v0.0.1
      • 39.49
      • 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
      • 38.93
      • Published

      reregexp

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

      • v1.6.1
      • 38.88
      • Published

      is-match

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

      • v1.0.0
      • 38.87
      • Published

      regexp-support

      check RegExp ( regular expressions ) support

      • v1.0.59
      • 38.45
      • Published

      @lvchengbin/escape

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

      • v0.0.3
      • 38.44
      • Published

      rexreplace

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

      • v7.1.13
      • 38.33
      • 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.31
      • Published

      match-require

      find require calls from string using regexp

      • v2.1.0
      • 38.20
      • Published

      reparse

      A parser combinator library like Parsec.

        • v0.1.2
        • 37.99
        • Published

        get-css-urls

        Get CSS urls from a string.

        • v1.0.1
        • 37.99
        • Published

        restream

        Regular Expression Detection & Replacement streams.

        • v4.0.0
        • 37.70
        • Published

        regex-combined-emojis

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

        • v1.6.0
        • 37.61
        • Published

        regex-username

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

        • v2.0.0
        • 37.54
        • Published

        cjk-conv

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

        • v1.2.150
        • 37.35
        • Published

        delims

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

        • v0.4.2
        • 37.32
        • Published

        social-links

        Validate & sanitize social links

        • v1.15.1
        • 36.79
        • Published

        patterns

        Match a string against a list of patterns

        • v1.0.3
        • 36.24
        • 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.7
        • 36.14
        • Published

        oniguruma

        oniguruma regular expression library

        • v7.2.3
        • 36.10
        • Published

        hashtag-regex

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

        • v2.2.0
        • 36.00
        • Published

        word-regex

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

        • v0.1.2
        • 35.90
        • 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.7
        • 35.65
        • Published

        path-to-regex

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

        • v1.3.8
        • 35.64
        • Published

        regexp-cjk

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

        • v3.3.117
        • 35.18
        • Published

        dotfile-regex

        Regular expresson for matching dotfiles.

        • v1.0.2
        • 35.05
        • Published

        regexpp2

        Regular expression parser for ECMAScript 2018.

        • v1.3.35
        • 34.95
        • Published

        wordcount

        Count the words in a string. Support for english, CJK and Cyrillic.

        • v1.1.1
        • 34.85
        • Published

        regexp-range

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

        • v2.0.7
        • 34.81
        • Published

        grunt-regex-replace

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

        • v0.4.0
        • 34.61
        • Published

        regexp.execall

        Array of RegExp.prototype.exec results

        • v1.0.2
        • 34.56
        • Published

        non-ascii

        Regular expression for matching non-ASCII characters

        • v2.0.0
        • 34.55
        • Published

        match-words

        Match the words in a string. Support for english, CJK and Cyrillic.

        • v1.0.0
        • 34.50
        • Published