js-util

Home > rc-js-util > regexEscapeRegex

regexEscapeRegex() function

Escapes RegExp special characters in strings.

Signature:

export declare function regexEscapeRegex(value: string): string;

Parameters

Parameter Type Description
value string  

Returns:

string

The escaped string.

Remarks

See regexEscapeRegex().