Module: rgjs/regex

RGJS6 Regex module.

Methods


<static> escape(str)

Escape a regexp.

Parameters:
Name Type Description
str string

A string

Returns:

A regexp-escaped string

Type
string
Example
rgjs.regex.escape("Look up.") // 'Look\ up\.'