rem: str = str.replace (reg, "href=\"" + backPath + "$1.html\""); var reg = new RegExp ("src=\"" + this.href ("") + "([^\"]+)\""); 
add: str = str.replace (reg, "href=\"" + backPath + "$1.html$2\""); var reg = new RegExp ("src=\"" + this.href ("") + "([^\"#]+)([^\"]*)\""); 
context: function getPage (obj, action, backPath) {	backPath = (backPath==null) ? "" : backPath;	res.pushStringBuffer ();	eval ("obj." + action + "_action ();");	var str = res.popStringBuffer ();	// get the baseURI out of the url and replace	// it with the given relative prefix	var reg = new RegExp ("href=\"" + this.href ("") + "([^\"]+)\"");	reg.global = true;	str = str.replace (reg, "href=\"" + backPath + "$1.html\"");	var reg = new RegExp ("src=\"" + this.href ("") + "([^\"]+)\"");	reg.global = true;	str = str.replace (reg, "src=\"" + backPath + "$1.html\"");	// shorten links, so that function files can move up one directory	// in the hierarchy	var reg = new RegExp ("(prototype_[^/]+/[^/]+)/main.html");	reg.global = true;	str = str.replace (reg, "$1.html");	return str;}
meta: 2504	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2504/d5add243c7204524f7258c2b32e504b8e42d716b/functions.js/clean/DocApplication/functions.js