WebPlatformRegExpConstructor.escapemethod RegExpConstructor.escape#RegExpConstructor.escape(string: string): stringReturns a new string in which characters that are potentially special in a regular expression pattern are replaced with escape sequences. Parameters ##string: string The string to escape. Return Type #string
method RegExpConstructor.escape#RegExpConstructor.escape(string: string): stringReturns a new string in which characters that are potentially special in a regular expression pattern are replaced with escape sequences. Parameters ##string: string The string to escape. Return Type #string