format = dojo.string.escapeRegExp(format, "?"); 
format = dojo.regexp.escapeString(format, "?"); 
dojox.regexp.numberFormat = function(/*Object?*/flags){	// summary: Builds a regular expression to match any sort of number based format	// description:	//  Use this method for phone numbers, social security numbers, zip-codes, etc.	//  The RE can match one format or one of multiple formats.	//	//  Format	//    #        Stands for a digit, 0-9.	//    ?        Stands for an optional digit, 0-9 or nothing.	//    All other characters must appear literally in the expression.	//	//  Example   	//    "(###) ###-####"       ->   (510) 542-9742	//    "(###) ###-#### x#???" ->   (510) 542-9742 x153	//    "###-##-####"          ->   506-82-1089       i.e. social security number	//    "#####-####"           ->   98225-1649        i.e. zip code	//	// flags:  An object	//    flags.format  A string or an Array of strings for multiple formats.	// assign default values to missing paramters	flags = (typeof flags == "object") ? flags : {};	if(typeof flags.format == "undefined"){ flags.format = "###-###-####"; }	// Converts a number format to RE.	var digitRE = function(format){		// escape all special characters, except '?'		format = dojo.string.escapeRegExp(format, "?");		// Now replace '?' with Regular Expression		format = format.replace(/\?/g, "\\d?");		// replace # with Regular Expression		format = format.replace(/#/g, "\\d");		return format; // String	};	// build RE for multiple number formats	return dojo.regexp.buildGroupRE(flags.format, digitRE); //String}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/e77966902f98dcb7a488054df24d2930c3baa217/regexp.js/buggy/validate/regexp.js