我尝试使用'/bkickstarter/b'
但它无法与这样的文本匹配:I backed this: http://kickstarter.com
更新:
var regex = new RegExp("/\bkickstarter\b/g");
console.log("zach braff's new movie is now being backed on kickstarter: http://www.kickstarter.com/projects/1869987317/wish-i-was-here-1 … also, a documentary on a swartz: http://www.kickstarter.com/projects/26788492/aaron-swartz-documentary-the-internets-o".match(regex));
那打印一个空值。