(Pattern matching is a technique commonly used in attack viewing systems. The string matching algorithm is its core content. This article analyzes three commonly used matching algorithms, and on this basis, improves and optimizes the BM (Boyer-Moore) algorithm and WM (Wu-Manber) algorithm, and then improves the speed and benefit of mode matching. .)