Utility class for handling regular expressions.
Static
Escapes RegExp special characters in a string.
The string to escape.
Optional
A map of custom replacement characters.
The escaped string.
import {Regex} from 'nodejs-shared';Regex.escape('//example.com/?lang=english');// //example\\.com/\\?lang=english Copy
import {Regex} from 'nodejs-shared';Regex.escape('//example.com/?lang=english');// //example\\.com/\\?lang=english
Utility class for handling regular expressions.