/([\s>"'])prog(<[^>]+>)ram(<[^>]+>)ing([\s\.,:;"'<])/g
will match your example
, , , html
var regExp = new RegExp('([\s>"\'])' + word.split('').join('(<[^>]+>)') + '([\s\.,:;"\'<])',g);
, . , , , " , html, html, - , , , :
String.prototype.stripHtml = function() {
return this.replace(/(<[^>]+>)/, '');
}