\begin{quote}
Escape Reg\+Exp special characters \end{quote}
\hypertarget{md_sfcode_node_modules_escape_string_regexp_readme_autotoc_md9213}{}\doxysection{Install}\label{md_sfcode_node_modules_escape_string_regexp_readme_autotoc_md9213}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save escape-\/string-\/regexp }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_escape_string_regexp_readme_autotoc_md9214}{}\doxysection{Usage}\label{md_sfcode_node_modules_escape_string_regexp_readme_autotoc_md9214}

\begin{DoxyCode}{0}
\DoxyCodeLine{const escapeStringRegexp = require('escape-\/string-\/regexp');}
\DoxyCodeLine{}
\DoxyCodeLine{const escapedString = escapeStringRegexp('how much \$ for a unicorn?');}
\DoxyCodeLine{//=> 'how much \(\backslash\)\$ for a unicorn\(\backslash\)?'}
\DoxyCodeLine{}
\DoxyCodeLine{new RegExp(escapedString); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_escape_string_regexp_readme_autotoc_md9215}{}\doxysection{License}\label{md_sfcode_node_modules_escape_string_regexp_readme_autotoc_md9215}
MIT © \href{http://sindresorhus.com}{\texttt{ Sindre Sorhus}} 