added web.replaceAll and web.escapeRegExp