Check if string contain a word - http://stackoverflow.com/a/21081760/4549947
function wordInString(s, word){ return new RegExp( '\\b' + word + '\\b', 'i').test(s); } wordInString('did you, or did you not, get why?', 'you') // true