JSPM

Found 131 results for re

ansi-regex

Regular expression for matching ANSI escape codes

  • v6.2.0
  • 126.45
  • Published

ip-regex

Regular expression for matching IP addresses (IPv4 & IPv6)

  • v5.0.0
  • 101.76
  • Published

html-comment-regex

Regular expression for matching HTML comments

  • v1.1.2
  • 93.82
  • Published

deps-regex

Regular expression for matching javascript require/import statements.

  • v0.2.0
  • 89.85
  • Published

author-regex

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

  • v1.0.0
  • 87.43
  • Published

sort-object

Sort the keys in an object.

  • v3.0.3
  • 87.16
  • Published

@stdlib/complex-reim

Return the real and imaginary components of a double-precision complex floating-point number.

  • v0.2.1
  • 85.14
  • Published

@stdlib/regexp-eol

Return a regular expression to match a newline character sequence.

  • v0.2.2
  • 85.01
  • 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
  • 84.72
  • Published

@stdlib/regexp-regexp

Return a regular expression to parse a regular expression string.

  • v0.2.2
  • 81.64
  • Published

@stdlib/complex-reimf

Return the real and imaginary components of a single-precision complex floating-point number.

  • v0.2.1
  • 80.37
  • Published

strip-color

Strip ANSI color codes from a string. No dependencies.

  • v0.1.0
  • 78.65
  • Published

ncname

Regular expression for matching XML NCName

  • v3.0.0
  • 78.17
  • Published

requires-regex

Regular expression for matching javascript require statements.

  • v1.0.4
  • 68.71
  • Published

@stdlib/complex-float64-reim

Return the real and imaginary components of a double-precision complex floating-point number.

  • v0.1.2
  • 67.77
  • Published

gfm-code-blocks

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

  • v1.0.0
  • 67.17
  • Published

gfm-code-block-regex

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

  • v1.0.0
  • 66.99
  • Published

@stdlib/complex-float32-reim

Return the real and imaginary components of a single-precision complex floating-point number.

  • v0.1.2
  • 66.00
  • Published

@stdlib/complex-imag

Return the imaginary component of a double-precision complex floating-point number.

  • v0.2.1
  • 65.15
  • Published

@stdlib/complex-imagf

Return the imaginary component of a single-precision complex floating-point number.

  • v0.2.1
  • 62.79
  • Published

@stdlib/complex-real

Return the real component of a double-precision complex floating-point number.

  • v0.2.1
  • 62.47
  • Published

@stdlib/complex-realf

Return the real component of a single-precision complex floating-point number.

  • v0.2.1
  • 62.46
  • Published

regexp-support

check RegExp ( regular expressions ) support

  • v1.0.59
  • 56.44
  • Published

sort-object-keys2

Sort an object's keys, including an optional key list

  • v3.0.7
  • 54.50
  • Published

delims

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

  • v0.4.2
  • 54.31
  • Published

regexp-cjk

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

  • v3.3.117
  • 51.68
  • Published

restream

Regular Expression Detection & Replacement streams.

  • v4.0.0
  • 51.58
  • Published

oniguruma

oniguruma regular expression library

  • v7.2.3
  • 51.33
  • Published

regexp-range

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

  • v2.0.7
  • 49.50
  • Published

parse-authors

Parse a string into an array of objects with `name`, `email` and `url` properties following npm conventions. Useful for the `authors` property in package.json or for parsing an AUTHORS file into an array of authors objects.

  • v0.2.4
  • 49.13
  • Published

regexp.execall

Array of RegExp.prototype.exec results

  • v1.0.2
  • 48.68
  • Published

line-number

Get the line number for each regex match found in a string.

  • v0.1.0
  • 45.33
  • Published

mismatch

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

  • v1.2.0
  • 44.33
  • Published

doi-regex

Regular expression for matching DOIs

  • v0.1.17
  • 43.42
  • Published

@esm2cjs/ip-regex

Regular expression for matching IP addresses (IPv4 & IPv6). This is a fork of sindresorhus/ip-regex, but with CommonJS support.

  • v5.0.0
  • 40.23
  • Published

match-requires

Match require statements in a string. Returns an array of matching require statements. Each match is an object with line number, variable name, and module name. Statements in code comments are ignored.

  • v2.0.1
  • 39.83
  • Published

function-regex

Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.

  • v1.0.2
  • 39.38
  • Published

strings

Easily replace and transform :props in strings.

  • v0.4.2
  • 38.60
  • Published

regex-translator

Convert a Regular Expression from one flavour to another.

  • v0.2.8
  • 35.75
  • Published

ip-port-regex

Regular expression for matching IP:PORT addresses

  • v2.0.0
  • 35.04
  • Published

escape-delims

Escape and un-escape delimiters in templates. Tested with Lo-Dash, underscore and Handlebars syntax, but could be used with other template engines/syntaxes as well. This is similar to the process used by Yeoman on escaped templates in generators.

  • v0.4.0
  • 32.52
  • Published

zero-width

remove zero-width and some other util about space

  • v1.0.29
  • 30.64
  • Published

cleanup-coverage-code

Cleanup ugly code added by code coverage tools during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`.

  • v1.0.3
  • 30.27
  • Published

coverage-code-regex

Regular expression (regex) for matching ugly code that coverage tools add during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`

  • v1.0.2
  • 30.08
  • Published

execall2

Find multiple RegExp matches in a string

  • v2.0.26
  • 29.96
  • Published

recoo

Regular expression helper

  • v1.0.8
  • 25.65
  • Published

relib

A regular expression library for node.js

  • v0.2.1
  • 25.60
  • Published

regex-box

Common regular expressions

  • v0.2.1
  • 25.07
  • Published

tieba-harmony

百度貼吧 關鍵字 和諧/反和諧 unescape / escape tieba harmony keywords

  • v2.0.41
  • 22.07
  • Published

node-re

Quickly rename files using NodeJS

  • v1.0.5
  • 17.71
  • Published

novel-text

node-novel core module

  • v1.1.45
  • 15.90
  • Published

bind-context

Bind context to a function and preserves her name. Can be used to change name of a function. The toString also works correctly.

  • v2.0.2
  • 13.47
  • Published

@zerda.js/runtime

Zerda.js Runtime Environment | Cross-platform | Modular | Wide GPU support

  • v0.5.3
  • 12.16
  • Published

has-ansi-cli

Check if a string has ANSI escape codes

  • v4.1.1
  • 11.58
  • Published

srl

Simple Regex Language

  • v0.2.3
  • 11.38
  • Published

strings-escape

Remove special characters in RegExp

  • v1.0.4
  • 10.80
  • Published

files-filters

Functions for fantastically fast file filtering, and more things that start with 'f'.

  • v0.1.2
  • 9.77
  • Published

extract-range

Extract a string in the given range (e.g. from line X to line Y).

  • v0.1.0
  • 9.56
  • Published

@syntropiq/py-regex

Python-compatible regular expressions for TypeScript/JavaScript, mirroring Python's re/regex API.

  • v1.0.0
  • 8.58
  • Published

build-regex-group

Build regular expression groups from arrays of strings. Useful when you need to automatically generate RegExp patterns.

  • v0.1.0
  • 8.43
  • Published

xregexify

A require/browserify plug-in for free-space regular expression files.

  • v1.0.3
  • 8.41
  • Published

js-restructure

This package provides a nifty way to match against regular expressions. Construct objects and match against regular expressions.

  • v1.1.2
  • 8.37
  • Published

typed-re

Template literal types for regular expression capturing groups

  • v1.1.0
  • 7.89
  • Published

sort-package-json2

Sort an Object or package.json based on the well-known package.json keys

  • v0.0.3
  • 7.75
  • Published

match-extension

Return `true` if a file extension matches the given string, array of strings, or RegExp pattern.

  • v0.2.1
  • 6.63
  • Published

react-component-updater

Forcibly re-render a component from anywhere through React hooks.

  • v1.0.7
  • 5.80
  • Published

rechain

Regex Chain - A new method for regular expressions

  • v1.0.8
  • 5.78
  • Published

reginald

Clone and modify a RegExp instance, including removing, prepending, appending & replacing the source

  • v1.0.0
  • 5.57
  • Published

regexp2

Regex Parser (fork from regexp)

  • v1.2.1
  • 5.56
  • Published

replace-nth

Replace only specific occurrences of a string. e.g. if the string exists 10 times, you can replace, say, the 3rd and 8th occurrences only, etc. Returns a new string with nth specific matches of a pattern replaced by a replacement. The pattern can be a str

  • v0.2.1
  • 5.44
  • Published

map-requires

Match require statements in a glob of files. Returns an an object files, each with an array of objects describing each require statement found. Each require statement object has a line number, variable name, and module name. Statements in code comments ar

  • v0.1.0
  • 5.44
  • Published

ran_new

for practice

    • v1.1.0
    • 4.39
    • Published

    re.js

    RegExp API for Humans!

    • v1.1.0
    • 4.22
    • Published

    @puzzle_w/ansi-regex

    Regular expression for matching ANSI escape codes

      • v1.0.0
      • 2.51
      • Published

      rexs

      REXS is a language for creating regular expressions. This library can compile REXS to a regular expression.

      • v1.0.3
      • 2.51
      • Published

      regex-format

      Format regex with string substitutions

      • v0.3.2
      • 2.46
      • Published

      @syntropiq/pyrex

      A TypeScript library providing a Python-like regex interface with automatic backend selection

      • v0.1.0
      • 2.41
      • Published

      animinecessitatibus

      Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.

      • v1.2.0
      • 0.00
      • Published

      re-extract

      A simple package to extract multiple named-matches from a larger text via regular expressions.

      • v0.1.0
      • 0.00
      • Published

      create-rescript-config

      A simple CLI utility to generate the required files to get you up and running with [ReScript](https://rescript-lang.org/).

      • v1.1.0
      • 0.00
      • Published