function escapeRegexp(strToEscape) {
            return strToEscape.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
        }
Escape all RegExp special characters in a string.

@param  {string} strToEscape The string to escape RegExp special char in.
@return {string} The escapes string.