如何精准匹配一段字符串中的某个单词?

比如:字符串"hello world hellooo"怎么只匹配到hello而不匹配hellooo?

阅读 3.6k
推荐问题