function escapeRegExp(text) {
	        return text.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, '\\$&');
	    }
Escapes special characters, except for whitespace, in a string to be
used inside a regular expression as a string literal.
@param {string} text The string.
@return {string} The escaped string literal.