Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/regexp/escape.ts

The Deno Standard Library
Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.224.0/regexp/escape.ts";

Functions

Escapes arbitrary text for interpolation into a regexp, such that it will match exactly that text and nothing else.