escape-string-regexp

RegExp escape tool

Escapes special characters in regular expressions to ensure safe string insertion

Escape RegExp special characters

GitHub

584 stars
14 watching
54 forks
Language: JavaScript
last commit: over 2 years ago
Linked from 1 awesome list


Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
sindresorhus/regexA wrapper around NSRegularExpression to simplify regular expression usage in Swift331
tc39/proposal-regex-escapingStandardizes escaping of string characters for use in regular expressions.375
tc39/proposal-regexp-r-escapeProposes an escape sequence for matching Unicode line terminators in regular expressions5
dmitrysoshnikov/regexp-treeTools and APIs for parsing, manipulating, and executing regular expressions in JavaScript401
chalk/ansi-regexA regular expression library for matching ANSI escape codes188
attackercan/regexp-security-cheatsheetA resource for identifying and avoiding common security vulnerabilities in regular expressions used in web application security707
sindresorhus/indent-stringA utility function to insert consistent indentation into a string112
sindresorhus/matcherA utility for simple string matching with wildcard patterns539
sindresorhus/string-lengthCorrects string length counting by ignoring astral symbols and ANSI escape codes.163
learnbyexample/learn_js_regexpA comprehensive resource for learning JavaScript regular expressions112
sindresorhus/strip-indentRemoves redundant indentation from a string by finding the minimum leading whitespace across all lines.136
rundevelopment/regexp-ast-analysisA TypeScript library that parses and analyzes JavaScript regular expressions into abstract syntax tree nodes3
lukeed/regexparamA utility for converting route patterns into regular expressions570
sindresorhus/ansi-escapesA collection of functions for manipulating the terminal screen in various ways498
sindresorhus/npm-userExtracts user data from an npm user's profile page57