Functiondojo.regexp.escapeString

dojo.require("dojo.regexp");
defined in dojo/regexp.js

Adds escape sequences for special characters in regular expressions

Usage

function (/*String*/ str, /*String?*/ except) (view source)
parametertypedescription
strString 
exceptStringOptional. a String with special characters to be left unescaped