QString pattern = "\bchar\b"; \要匹配的字符
QRegExp expression(pattern); \ 创建正则表达式
int index = text.indexOf(expression); \ indexOf()字符串匹配