deno.com

interface RegExpConstructor

unstable

Methods #

#escape(string: string): string

Returns a new string in which characters that are potentially special in a regular expression pattern are replaced with escape sequences.