🌜
🌞

Best JavaScript Regular Expression Libraries

emoji-regex

emoji-regex

v10.1.0

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

Last Commit
Sep 29, 2022
GitHub Stargazers
1,466
License
MIT
Contributors
12
ignore

ignore

v5.2.0

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

Last Commit
Jan 10, 2022
GitHub Stargazers
356
License
MIT
Contributors
14
@babel/plugin-transform-dotall-regex

@babel/plugin-transform-dotall-regex

v7.18.6

Compile regular expressions using the `s` (`dotAll`) flag to ES5.

Last Commit
Oct 4, 2022
GitHub Stargazers
41.5K
License
MIT
Contributors
99
anymatch

anymatch

v3.1.2

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

Last Commit
May 14, 2021
GitHub Stargazers
329
License
ISC
Contributors
13
is-regex

is-regex

v1.1.4

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

Last Commit
Jan 11, 2022
GitHub Stargazers
21
License
MIT
Contributors
4
@babel/plugin-transform-named-capturing-groups-regex

@babel/plugin-transform-named-capturing-groups-regex

v7.18.6

Compile regular expressions using named groups to ES5.

Last Commit
Oct 4, 2022
GitHub Stargazers
41.5K
License
MIT
Contributors
99
@babel/plugin-proposal-unicode-property-regex

@babel/plugin-proposal-unicode-property-regex

v7.18.6

Compile Unicode property escapes in Unicode regular expressions to ES5.

Last Commit
Oct 4, 2022
GitHub Stargazers
41.5K
License
MIT
Contributors
99
to-regex-range

to-regex-range

v5.0.1

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

Last Commit
Jun 16, 2019
GitHub Stargazers
119
License
MIT
Contributors
3
regexpp

regexpp

v3.2.0

Regular expression parser for ECMAScript.

Last Commit
Jun 14, 2021
GitHub Stargazers
132
License
MIT
Contributors
4
escape-string-regexp

escape-string-regexp

v5.0.0

Escape RegExp special characters

Last Commit
Apr 17, 2021
GitHub Stargazers
522
License
MIT
Contributors
6
regexp.prototype.flags

regexp.prototype.flags

v1.4.3

ES6 spec-compliant RegExp.prototype.flags shim.

Last Commit
Apr 15, 2022
GitHub Stargazers
7
License
MIT
Contributors
2
astral-regex

astral-regex

v2.0.0

Regular expression for matching astral symbols

Last Commit
Apr 5, 2019
GitHub Stargazers
30
License
MIT
Contributors
3
is-glob

is-glob

v4.0.3

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

Last Commit
Oct 22, 2021
GitHub Stargazers
79
License
MIT
Contributors
5
regexpu-core

regexpu-core

v5.1.0

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

Last Commit
Jun 30, 2022
GitHub Stargazers
59
License
MIT
Contributors
6
is-regexp

is-regexp

v3.1.0

Check if a value is a regular expression

Last Commit
Oct 31, 2021
GitHub Stargazers
24
License
MIT
Contributors
4
@babel/helper-create-regexp-features-plugin

@babel/helper-create-regexp-features-plugin

v7.18.6

Compile ESNext Regular Expressions to ES5

Last Commit
Oct 4, 2022
GitHub Stargazers
41.5K
License
MIT
Contributors
99
shebang-regex

shebang-regex

v4.0.0

Regular expression for matching a shebang line

Last Commit
Aug 13, 2021
GitHub Stargazers
40
License
MIT
Contributors
4
string.prototype.matchall

string.prototype.matchall

v4.0.7

Spec-compliant polyfill for String.prototype.matchAll

Last Commit
Apr 16, 2022
GitHub Stargazers
15
License
MIT
Contributors
1
is-extglob

is-extglob

v2.1.1

Returns true if a string has an extglob.

Last Commit
May 25, 2019
GitHub Stargazers
19
License
MIT
Contributors
2
ansi-regex

ansi-regex

v6.0.1

Regular expression for matching ANSI escape codes

Last Commit
Oct 28, 2021
GitHub Stargazers
148
License
MIT
Contributors
10
xregexp

xregexp

v5.1.1

Extended regular expressions

Last Commit
Jun 5, 2022
GitHub Stargazers
3,147
License
MIT
Contributors
17
regex-not

regex-not

v1.0.2

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

Last Commit
Feb 20, 2018
GitHub Stargazers
30
License
MIT
Contributors
2
regenerate

regenerate

v1.4.2

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

Last Commit
Nov 1, 2020
GitHub Stargazers
336
License
MIT
Contributors
6
to-regex

to-regex

v3.0.2

Generate a regex from a string or array of strings.

Last Commit
Feb 24, 2018
GitHub Stargazers
55
License
MIT
Contributors
1
regex-parser

regex-parser

v2.2.11

A module that parses a string as regular expression and returns the parsed value.

Last Commit
Aug 9, 2020
GitHub Stargazers
24
License
MIT
Contributors
3