Laks, если не то - формулируйте задачу яснее и лаконичнее.
var text = ["Bobby pierces an elite guard very hard.",
"Bobby pierces an elite guard extremely hard.",
"Bobby pierces an elite guard.",
"Bobby barely pierces an elite guard.",
"An elite guard pierces Bobby very hard.",
"An elite guard pierces Bobby extremely hard.",
"An elite guard pierces Bobby.",
"An elite guard barely pierces Bobby."];
function getBobby(txt) {
alert( txt.match(/bobby|an elite guard/ig) );
}
text.forEach(getBobby);