/*
escapeReg --对目标字符串中可能影响正则表达式构造的字符串进行转义
*@function*
*@param {String} source*
*@return {String} 转义后的字符串* 对.*+?^=!:${}()|[]/\ 进行加"\"
*/
ZYC.string.escapeReg = function(source){
return String(source).replace(new RegExp("([.*+?^=!:\x24{}()|[\\]\/\\\\])","g"),'\\\x241');
}