String.escapeRegExp

Syntax

PP.String.escapeRegExp(text: String);

Parameters

text. Text to escape.

Description

The escapeRegExp static method escapes special characters to use the string in a regular expression.

Comments

This method returns a String-type value.

Example

The example of use is given in the with description of the String.escapeHTML method.

See also:

PP