escape-string-regexp

WebJar for escape-string-regexp

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

escape-string-regexp
Последняя версия

Последняя версия

4.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

escape-string-regexp
WebJar for escape-string-regexp
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/escape-string-regexp

Скачать escape-string-regexp

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/escape-string-regexp/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>escape-string-regexp</artifactId>
    <version>4.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/escape-string-regexp/
implementation 'org.webjars.npm:escape-string-regexp:4.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/escape-string-regexp/
implementation ("org.webjars.npm:escape-string-regexp:4.0.0")
'org.webjars.npm:escape-string-regexp:jar:4.0.0'
<dependency org="org.webjars.npm" name="escape-string-regexp" rev="4.0.0">
  <artifact name="escape-string-regexp" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='escape-string-regexp', version='4.0.0')
)
libraryDependencies += "org.webjars.npm" % "escape-string-regexp" % "4.0.0"
[org.webjars.npm/escape-string-regexp "4.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

escape-string-regexp Build Status

Escape RegExp special characters

Install

$ npm install escape-string-regexp

Usage

const escapeStringRegexp = require('escape-string-regexp');

const escapedString = escapeStringRegexp('How much $ for a 🦄?');
//=> 'How much \\$ for a 🦄\\?'

new RegExp(escapedString);

You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Версии библиотеки

Версия
4.0.0
2.0.0
1.0.5
1.0.4
1.0.3
1.0.2