rem: var foo = rer.replace(/ /g,'[\\s\\$\\!]+'); var re = new RegExp(foo); var roughMatch = deParen(rootStrippedHTML).match(re); 
add: rer = rer.replace(/[\s$!]+$/g,''); var foo = rer.replace(/ \b/g,'[\\s\$\!]+');   var re = new RegExp(foo,'im'); var roughMatch = rootStrippedHTML.match(re);  
context: function intense_doRoughMatch(selections,selecObj,root_words,i) {     var rer = deParen(selections[i]);  var foo = rer.replace(/ /g,'[\\s\\$\\!]+');  var re = new RegExp(foo);  var roughMatch = deParen(rootStrippedHTML).match(re);  if (roughMatch) {    selecObj[i].matchindex = (roughMatch.index - selections[i].length);    var n,sum;    for (n=0,sum=0; sum<roughMatch.index&&n<root_words.length; n++) {      if (root_words[n]) {	sum += root_words[n].length + 1;      }    }    n == 0 ? selecObj[i].arrayIndex = 0 : selecObj[i].arrayIndex = n-2;  }}
meta: 891	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/891/d81801bea5a832c839d00f7eb346766a61b5d1ee/stet-intense-shorter.js/buggy/stet-intense-shorter.js