Sha256: a9fd76613c52aa62a036e7d85d6503601ac3aae1444f4765c738567e5f687f4f
Contents?: true
Size: 467 Bytes
Versions: 49
Compression:
Stored size: 467 Bytes
Contents
/** Escape RegExp special characters. You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class. @example ``` import escapeStringRegexp = require('escape-string-regexp'); const escapedString = escapeStringRegexp('How much $ for a 🦄?'); //=> 'How much \\$ for a 🦄\\?' new RegExp(escapedString); ``` */ declare const escapeStringRegexp: (string: string) => string; export = escapeStringRegexp;
Version data entries
49 entries across 49 versions & 3 rubygems