tchmi_escape_regex
[ Function ]
function tchmi_escape_regex(text: string): string;
Masks a regular expression.
Parameter
Name | Type | Description |
---|---|---|
text | The string to be masked |
Return value
Type | Description |
---|---|
Masked string. |
Available from version 1.12 |
Sample - JavaScript
TcHmi.Log.debug(tchmi_escape_regex('/ab+c/')); // '/ab\\+c/'