rem: var c = 0; var pattern = /%\d*\$*s/; 
context: function vsprintf() {	var txt = arguments[0];	var c = 0;	var pattern = /%\d*\$*s/;	while(c < arguments[1].length) {		//below line extracts the current ordered match so we know what argument		//we are using, the $ needs to be escaped again in order to work.		replace = new RegExp(((txt.match(pattern)).toString()).replace(/\$/, '\\\$'), "g");		txt = txt.replace(replace, arguments[1][(replace.toString()).match(/\d/) - 1]);		c++;	}	return (txt);}//end vsprintf()
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/1c324ff364cdb09738bf0e44b574f6b78af6d5d9/general.js/buggy/core/lib/js/general.js