hive/html/js/basic.js
//escape special characters like *, . etc., for using a string literal inside a regexp
escape special characters like *, . etc., for using a string literal inside a regexp
escape special characters like * . etc . for using a string literal inside a regexp
function sanitizeStringRE(s)
{
    s = "" + s;
    s = s.replace(/([.\\\[\]()^|$*?+{}])/g, "\\$1");
    return s;
}
function sanitizeStringRE ( s ) { s = "" + s ; s = s . replace ( / ([.\\\[\]()^|$*?+{}]) / g , "\\$1" ) ; return s ; }
escape special characters like *, .
escape special characters like * .