Members
(private, static) regExpEscape :external:RegExp
Regualar Expression for escape string
Type:
- Source:
- See:
Methods
(static) escape(str) → {external:String}
escape all regular expression characters in the given string for inlude in a regular espression
Parameters:
Name | Type | Description |
---|---|---|
str |
external:String | the string to escape |
- Source:
- See:
Returns:
escaped string
- Type
- external:String
Example
RegExp.escape('a.b'); // 'a\\.b'