Bastava dirlo... io sono pur sempre partito dal codice che hai mandato tu...
codice:
	var re = new RegExp("\\b" + t, "i");