\B是匹配整个单词
boolean b = Pattern.matcher(".*\Babc.*","testabctest");
b == true