escape-string-regexp

WebJar for escape-string-regexp

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

1.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

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

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

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

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

Зависимости

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

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

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

escape-string-regexp

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.

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

Версия
1.0.5