tchmi_escape_regex

[ Function ]

function tchmi_escape_regex(text: string): string;

Masks a regular expression.

Parameter

Name

Type

Description

text

string

The string to be masked

Return value

Type

Description

string

Masked string.

tchmi_escape_regex 1:

Available from version 1.12

Sample - JavaScript

TcHmi.Log.debug(tchmi_escape_regex('/ab+c/')); // '/ab\\+c/'