Latest
function escapeRegExp
import { escapeRegExp } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/string.js";

Escapes the RegExp special characters "^", "$", "", ".", "*", "+", "?", "(", ")", "[", "]", "{", "}", and "|" in string.

Examples

_.escapeRegExp('lodash'); // => '[lodash](https://lodash.com/)'