这里 WikiPediaâString searching algorithm String searching see also эффективный алгоритм String searching algorithms http://en.wikipedia.org/wiki/String_searching_algorithm http://en.wikipedia.org/wiki/String_searching_algorithm useful pages KMP algorithm or others String_searching_algorithm English English string matching algorithms 字符串匹配 字符串匹配 String Search (en.wikipedia.org) it is not trivial to do it efficiently see wikipedia string searching algorithm English multiple pattern search multiple pattern search String searching string searching algorithms String_searching_algorithm http://en.wikipedia.org/wiki/String_searching_algorithm 字符串匹配 multiple pattern search substring search string searching string searching algorithms 字符串匹配 string search string searches algorithms although potentially it can be done in linear see wikipedia http://en.wikipedia.org/wiki/String_searching_algorithm naive string search String matching see also multiple pattern search http://en.wikipedia.org/wiki/String_searching_algorithm English String searching algorithm English see wikipedia http://en.wikipedia.org/wiki/String_searching_algorithm string matching String matching string searching algorithm string searching algorithms http://en.wikipedia.org/wiki/String_searching_algorithm multiple pattern search string searches algorithms