Namespace

DuRegExp

DuRegExp

JavaScript Regular Expression related methods

View Source DuAEF_DuSan_api.jsxinc, line 6149

Members

# static readonly javascriptSymbols

The set containing javascript symbols ( +, -, [, etc.). Useful when parsing javascript code.

View Source DuAEF_DuSan_api.jsxinc, line 6166

# static readonly javascriptSymbolsNoDot

The set containing javascript symbols ( +, -, [, etc.) except the dot. Useful when parsing javascript code.

View Source DuAEF_DuSan_api.jsxinc, line 6172

# static readonly javascriptVarChars

The set containing authorized characters for javascript variable. Useful when parsing javascript code.

View Source DuAEF_DuSan_api.jsxinc, line 6178

Methods

# static escape(string) → {string}

Escape reg exp reserved characters from a string to build a regular expression compatible string
Parameters:
Name Type Description
string string The string to escape

View Source DuAEF_DuSan_api.jsxinc, line 6157

The escaped string
string