function sap/base/strings/escapeRegExp

Visiblity: public
Available since: N/A
Module: sap/base/strings/escapeRegExp
Application Component:

Escapes all characters that would have a special meaning in a regular expression.

This method can be used when a string with arbitrary content has to be integrated into a regular expression and when the whole string should match literally.


Parameters Overview

Param Type Default Value Description
sString string String to escape

Methods Overview

Method Description