regexEscape = function (str) {
  // Originally from: http://phpjs.org/functions
  return String(str).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g, '\\$&')
}
Escapes special characters in a regular expression.
@function regexEscape
@param {string} str
@returns {string}