JSPM

Found 3042 results for regex rule

@speed-highlight/core

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

  • v1.2.7
  • 60.71
  • Published

is-valid-path

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

  • v0.1.1
  • 60.41
  • Published

super-regex

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

  • v1.0.0
  • 60.34
  • 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.34
  • Published

function-timeout

Make a synchronous function have a timeout

  • v1.0.2
  • 60.08
  • Published

html-comment-regex

Regular expression for matching HTML comments

  • v1.1.2
  • 60.05
  • Published

refa

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

  • v0.12.1
  • 59.98
  • Published

deps-regex

Regular expression for matching javascript require/import statements.

  • v0.2.0
  • 59.85
  • Published

emoji-regex-xs

A regular expression to match all emoji-only symbols

  • v2.0.1
  • 59.84
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 59.72
  • Published

is-whitespace

Returns true if the value passed is all whitespace.

  • v0.3.0
  • 59.53
  • Published

oniguruma-parser

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

  • v0.12.1
  • 58.96
  • Published

scoped-regex

Regular expression for matching scoped npm package names

  • v3.0.0
  • 58.82
  • Published

has-glob

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

  • v1.0.0
  • 58.68
  • Published

reregexp

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

  • v1.6.1
  • 58.45
  • Published

eslint-plugin-regexp

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

  • v2.10.0
  • 57.78
  • Published

replacestream

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

  • v4.0.3
  • 56.94
  • Published

author-regex

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

  • v1.0.0
  • 56.87
  • 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.63
  • Published

@stdlib/regexp-eol

Return a regular expression to match a newline character sequence.

  • v0.2.2
  • 55.39
  • Published

url-regex

Regular expression for matching URLs

  • v5.0.0
  • 55.23
  • Published

emojibase

Emojibase utility functions for working with emoji characters.

  • v16.0.0
  • 55.02
  • Published

@stdlib/regexp-regexp

Return a regular expression to parse a regular expression string.

  • v0.2.2
  • 55.01
  • Published

type-level-regexp

Type-Level RegExp parser, matcher and permutation resolver

  • v0.1.17
  • 54.86
  • 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
  • 54.72
  • Published

emojibase-regex

Evergreen emoji regex patterns.

  • v16.0.0
  • 54.17
  • Published

strip-color

Strip ANSI color codes from a string. No dependencies.

  • v0.1.0
  • 54.02
  • Published

regextras

Array extras for regular expressions

  • v0.8.0
  • 53.89
  • Published

country-regex

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

  • v1.1.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.69
  • Published

update-section

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

  • v0.3.3
  • 53.34
  • Published

css-url-regex

Regular expression for matching CSS urls.

  • v4.0.0
  • 52.98
  • Published

typechecker

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

  • v9.3.0
  • 52.98
  • 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.15
  • Published

glob-regex

Tiny glob->regex converter

  • v0.3.2
  • 51.97
  • Published

issue-regex

Regular expression for matching issue references

  • v4.3.0
  • 51.93
  • Published

is-git-url

Regex to validate that a URL is a git url.

  • v1.0.0
  • 51.80
  • Published

glob-to-regex.js

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

  • v1.0.1
  • 51.66
  • Published

regexpu

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

  • v4.8.0
  • 51.48
  • Published

ua-regexes-lite

A lite useragent regexes collection.

  • v1.2.1
  • 51.36
  • Published

identifier-regex

Regular expression for matching JavaScript identifiers

  • v1.0.0
  • 51.31
  • Published

xml-char-classes

Regular expressions for matching against the XML Character Classes

  • v3.0.0
  • 51.18
  • 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.00
  • Published

reghex

The magical sticky regex-based parser generator 🧙

  • v3.0.2
  • 50.95
  • Published

recursive-copy

Simple, flexible file copy utility

  • v2.0.14
  • 50.91
  • 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.75
  • Published

ncname

Regular expression for matching XML NCName

  • v3.0.0
  • 50.74
  • 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.49
  • Published

apg-js

JavaScript APG, an ABNF Parser Generator

  • v4.4.0
  • 50.44
  • Published

org-regex

Regular expression for matching npm organization names

  • v1.0.0
  • 50.40
  • Published

regex-escape

Escapes input characters to be used in regular expressions.

  • v3.4.11
  • 50.20
  • Published

weapon-regex

Weapon regeX mutates regular expressions for use in mutation testing.

  • v1.3.3
  • 49.96
  • Published

oniguruma-to-js

Covert Oniguruma-flavor Regexp to JavaScript native RegExp

  • v0.4.3
  • 49.83
  • Published

eslint-plugin-redos-detector

An eslint plugin that detects vulnerable regex using "https://github.com/tjenkinson/redos-detector".

  • v3.1.1
  • 49.54
  • Published

match-all

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

  • v1.2.7
  • 48.70
  • Published

is-uuid

UUID check for Node and the browser

  • v1.0.2
  • 48.51
  • Published

delimiter-regex

Create regex for template delimiters.

  • v2.0.0
  • 48.51
  • Published

valid-filename

Check if a string is a valid filename

  • v4.0.0
  • 48.06
  • 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.00
  • Published

rewrite-imports

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

  • v3.0.0
  • 47.93
  • Published

ts-regex-builder

Maintainable regular expressions for TypeScript and JavaScript.

  • v1.8.2
  • 47.71
  • Published

skip-regex

Micro parser for detection of literal regexes

  • v1.0.2
  • 47.18
  • Published

replace-last

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

  • v1.2.6
  • 46.76
  • Published

regx

Tagged template string regular expression compiler.

  • v1.0.4
  • 46.66
  • Published

object-scan

Traverse object hierarchies using matching and callbacks.

  • v20.0.1
  • 46.55
  • Published

grunt-text-replace

Replace text in files using strings, regexs or functions.

  • v0.4.0
  • 46.53
  • Published

xspattern

XML Schema pattern (regular expression) matcher

  • v3.1.0
  • 46.46
  • Published

bash-glob

Bash-powered globbing for node.js

  • v2.0.0
  • 46.34
  • Published

regexp-util

utilities for generating regular expression

  • v2.0.3
  • 46.25
  • Published

applause

Human-friendly replacements.

  • v2.0.4
  • 46.13
  • Published

eslint-plugin-dirs

Eslint Rules for ensure directory names and file names to be coincident.

  • v0.0.4
  • 46.07
  • Published

onigasm

WebAssembly port of Oniguruma regex library

  • v2.2.5
  • 46.05
  • Published

unicoderegexp

Regular expressions for various Unicode character classes extracted from XRegExp

  • v0.4.1
  • 46.00
  • 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
  • 45.98
  • Published

@11ty/recursive-copy

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

  • v4.0.2
  • 45.96
  • Published

requires-regex

Regular expression for matching javascript require statements.

  • v1.0.4
  • 45.87
  • Published

regexgen

Generate regular expressions that match a set of strings

  • v1.3.0
  • 45.57
  • Published

synesthesia

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

  • v1.0.1
  • 45.55
  • 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.45
  • 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.04
  • Published

email-regex

Regular expression for matching email addresses

  • v6.1.0
  • 45.00
  • Published

utils-regex-from-string

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

  • v1.0.0
  • 44.98
  • Published

regex-regex

Regular expression to parse a regular expression string.

  • v1.0.0
  • 44.92
  • Published

quotemeta

escape regular expression characters

  • v0.0.0
  • 44.86
  • Published

import-regex

Regular expression for matching CSS @imports

  • v1.1.0
  • 44.61
  • Published

grunt-replace

Replace text patterns with applause.

  • v2.0.2
  • 44.18
  • Published

license-check-and-add

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

  • v4.0.5
  • 44.12
  • Published

gfm-code-blocks

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

  • v1.0.0
  • 43.79
  • Published

string-escape-regex

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

  • v1.0.1
  • 43.77
  • Published

gfm-code-block-regex

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

  • v1.0.0
  • 43.27
  • 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.26
  • Published

multichar-regex

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

  • v2.0.0
  • 43.14
  • Published

bump-regex

bump RegEx with semver

  • v4.1.0
  • 42.87
  • Published

postcss-filter-mq

Filter all matching or non-matching media queries

    • v1.0.1
    • 42.82
    • Published

    es6-template-regex

    Regular expression for matching es6 template delimiters in a string.

    • v1.0.0
    • 42.21
    • Published

    jsdoc-regex

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

    • v1.0.1
    • 42.12
    • Published

    comment-regex

    Regular expression for matching JavaScript comments

    • v2.0.0
    • 41.85
    • Published

    simple-text-parser

    A dead simple, customizable plain text parser.

    • v2.1.1
    • 41.25
    • Published

    es6-template

    Easy and small template engine for the browser and nodejs.

    • v1.0.4
    • 40.32
    • Published

    regexify-string

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

    • v1.0.19
    • 40.27
    • Published

    next-applause

    Human-friendly replacements.

    • v2.2.4
    • 40.12
    • Published

    dotdir-regex

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

    • v1.0.1
    • 39.71
    • Published

    es6template

    Easy and small template engine for the browser.

    • v1.0.5
    • 39.68
    • Published

    broccoli-replace

    Replace text patterns with applause.

    • v2.0.2
    • 39.51
    • Published

    anysort

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

    • v2.0.0
    • 39.42
    • Published

    react-process-string

    A library to process strings with regular expressions.

    • v1.2.0
    • 39.35
    • 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
    • 39.33
    • 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.10
    • 39.07
    • Published

    regex-emoji

    A regex to match the :emoji: snippets in a string.

    • v2.0.9
    • 38.84
    • Published

    rollup-plugin-modify

    Modify rollup output with find / replace dynamically

    • v3.0.0
    • 38.79
    • Published

    github-username-regex

    A regular expression that only matches a valid Github username

    • v1.0.0
    • 38.59
    • Published

    string-search

    Node module for searching multi-line string using regex

    • v1.2.0
    • 38.56
    • 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.10
    • 38.46
    • 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
    • 38.45
    • Published

    re-tree

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

    • v0.1.7
    • 38.27
    • Published

    @sutro-dev/route-parser

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

    • v6.0.0
    • 38.05
    • Published

    url-regexp

    RegExp object to match and validate URL(s).

    • v1.0.2
    • 37.86
    • Published

    gulp-delete-lines

    A gulp plugin that will delete all lines that matches one of the given regex filters.

    • v0.0.7
    • 37.39
    • 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
    • 37.33
    • Published

    @lvchengbin/escape

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

    • v0.0.3
    • 37.31
    • Published

    domain-regex

    A regular expression for valid domains.

    • v0.0.1
    • 37.22
    • Published

    phone-regex

    Regular expression for phone numbers.

    • v2.1.0
    • 37.17
    • Published

    named-js-regexp

    Extends JavaScript RegExp with named groups, backreferences and replacement.

    • v1.3.5
    • 37.09
    • 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
    • 36.76
    • Published

    reges

    A collection of regular expressions

    • v0.0.3
    • 36.72
    • Published

    is-match

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

    • v1.0.0
    • 36.58
    • Published

    filter-values

    Filter an object values using glob patterns or with a `callback` function returns true.

    • v0.4.1
    • 36.57
    • Published

    typed-regex

    A typescript library for writing type-safe regular expressions using named capture groups

    • v0.0.8
    • 36.55
    • Published

    regexp-support

    check RegExp ( regular expressions ) support

    • v1.0.59
    • 36.35
    • Published

    rexreplace

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

    • v7.1.13
    • 36.26
    • 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
    • 36.22
    • Published

    vuln-regex-detector

    Detect vulnerable regexes by querying a service hosted at Virginia Tech.

    • v1.3.0
    • 35.97
    • Published

    escape-regex-string

    Escapes a string literal for use as an argument in the standard RegExp constructor.

    • v1.0.6
    • 35.90
    • Published

    gulp-regex-replace

    Replace your code using regular expressions.

    • v0.2.3
    • 35.85
    • Published

    punycode-regex

    A regex for matching punycode.

    • v1.0.1
    • 35.81
    • Published

    delims

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

    • v0.4.2
    • 35.77
    • Published

    fast-find-in-files

    fast-find-in-files recursively searches sub-directories for needle matches

    • v1.0.5
    • 35.70
    • Published

    cjk-conv

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

    • v1.2.150
    • 35.64
    • Published

    diacritic-regex

    String to a regex that is diacritic insensitive

    • v1.2.0
    • 35.53
    • Published

    regex-username

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

    • v2.0.0
    • 35.28
    • Published

    @zitterorg/magni-eos

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

    • v5.8.60
    • 35.27
    • Published

    get-css-urls

    Get CSS urls from a string.

    • v1.0.1
    • 35.27
    • 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.10
    • 35.25
    • Published

    regex-combined-emojis

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

    • v1.6.0
    • 35.08
    • Published

    itty-router-extras

    An assortment of delicious extras for the calorie-light itty-router.

    • v0.4.6
    • 34.95
    • Published

    social-links

    Validate & sanitize social links

    • v1.15.1
    • 34.92
    • Published

    oniguruma

    oniguruma regular expression library

    • v7.2.3
    • 34.83
    • Published

    urlregex

    URL validation for Node and the browser

    • v0.6.8
    • 34.37
    • Published

    filter-keys

    Filter the keys of an object using glob patterns.

    • v1.1.0
    • 34.27
    • Published

    word-regex

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

    • v0.1.2
    • 34.08
    • Published

    unicode-astral-regex

    A regex to match astral symbols that supports unicode strings.

    • v1.0.1
    • 34.03
    • Published

    hashtag-regex

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

    • v2.2.0
    • 33.98
    • Published

    credit-card-regex

    Regular expression for matching credit card numbers

    • v3.0.0
    • 33.96
    • Published

    patterns

    Match a string against a list of patterns

    • v1.0.3
    • 33.95
    • Published

    css-groups

    A JavaScript object of regular expressions that match CSS properties grouped by category.

    • v0.1.1
    • 33.91
    • Published

    available-regexp-flags

    Which regular expression flags does the current environment support?

    • v1.0.4
    • 33.72
    • Published

    regexp-cjk

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

    • v3.3.117
    • 33.57
    • 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.10
    • 33.53
    • Published

    stream-search-helper

    Aids streams searching with string or regex delimiters.

    • v0.7.1
    • 33.37
    • Published

    dotfile-regex

    Regular expresson for matching dotfiles.

    • v1.0.2
    • 33.13
    • Published

    regexp-range

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

    • v2.0.7
    • 33.04
    • Published

    newline-regex

    Regex for newline characters

    • v0.2.1
    • 32.84
    • Published

    strapi-advanced-uuid

    UUID field type support to Strapi with customizations

    • v2.1.1
    • 32.83
    • Published

    wordcount

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

    • v1.1.1
    • 32.75
    • Published

    grunt-regex-replace

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

    • v0.4.0
    • 32.75
    • Published

    regexp.execall

    Array of RegExp.prototype.exec results

    • v1.0.2
    • 32.69
    • Published

    has-named-captures

    Does the JS environment support named capture groups in regexes?

    • v1.0.0
    • 32.69
    • Published

    onion-regex

    Regular expression for matching .onion Tor links (v2 & v3).

    • v2.0.8
    • 32.63
    • Published

    non-ascii

    Regular expression for matching non-ASCII characters

    • v2.0.0
    • 32.61
    • Published

    youtube-regex

    The correct Youtube video id regex! Regex done right!

    • v1.0.5
    • 32.56
    • Published

    match-words

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

    • v1.0.0
    • 32.46
    • Published

    mac-regex

    A regular expression for MAC addresses.

    • v1.0.0
    • 32.27
    • 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.10
    • 32.27
    • Published

    useful-handlebars-helpers

    More than 150 Handlebars helpers in 17 categories. Works in browsers and in Node.js.

    • v0.12.0
    • 32.26
    • Published

    stream-snitch

    Event emitter for watching text streams with regex patterns

    • v0.0.3
    • 32.12
    • 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.10
    • 32.10
    • Published

    copyright-regex

    Regex for matching and parsing copyright statements.

    • v1.1.6
    • 32.03
    • Published

    @hutechtechnical/velit-minima-autem-eos

    [![npm](https://img.shields.io/npm/v/@hutechtechnical/velit-minima-autem-eos.svg)](https://www.npmjs.com/package/@hutechtechnical/velit-minima-autem-eos) [![npm](https://img.shields.io/npm/dm/@hutechtechnical/velit-minima-autem-eos)](https://www.npmjs.com

    • v1.0.0
    • 31.95
    • Published

    color-regex

    Color regex. Easily check the format of any color. Use diverse color helpers available to verify any color.

      • v1.0.2
      • 31.91
      • Published

      regex-randstr

      A tool to generate random strings based on a regex pattern using TypeScript.

      • v0.0.6
      • 31.85
      • Published

      wildcard-regex

      Super simple wildcard tools for generating string patterns and RegExp objects

      • v3.0.2
      • 31.85
      • Published

      floating-point-regex

      Regular expression for matching floating-point literals.

      • v0.1.0
      • 31.78
      • Published