Re:Randall Munroe's (from xkcd) newest idea
by rbmoshe on Sunday November 10, 2013 @01:32PM
(#6707768)
Thanks for the ignoreCase problem, I fixed it. I actually was using a \b in the link but forgot to update the source accordingly. The reason I use \s\s* over \s+ is because I once saw that it has some performance benefits, although it really doesn't make a difference
Like the other js implementation you're not matching word boundaries (\b).