I'm doing a sports-related quiz in JavaScript/jQuery: http://jsfiddle.net/zVsxf/
I've cobbled some code together from answers on this site and it works fairly well but I have a small problem. I don't want the user to get credit for answering the Red Sox" and the Red Wings as soon as s/he enters "Red". The same with "Blue" (Blues/Blue Jays/Blue Jackets) and "White" (White Sox).
I just need a regular expression, if it exists, or some advice on this part. Here's the most relevant code I have so far (in the jsFiddle link, it's on line 56:
if (current_name.match(RegExp('\\b' + entry + '\\b', 'i')))