# escape-string-regexp **Repository Path**: mirrors_percona/escape-string-regexp ## Basic Information - **Project Name**: escape-string-regexp - **Description**: Escape RegExp special characters - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2025-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > ATTENTION: This repo is used by PCT for testing purposes. It is a fork that has been adapted to the browser env. # escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp) > Escape RegExp special characters ## Install ```sh $ npm install --save escape-string-regexp ``` ## Usage ```js var escapeStringRegexp = require('escape-string-regexp'); var escapedString = escapeStringRegexp('how much $ for a unicorn?'); //=> how much \$ for a unicorn\? new RegExp(escapedString); ``` ## Browser use ```html ``` ### Compile new version to the browser ```sh npm install npm run compile ``` ## License MIT © [Sindre Sorhus](http://sindresorhus.com)