3 ms·
If you're looking to do this kind of matching with a large number of strings, you may want to look at Aho-Corasick: https://en.wikipedia.org/wiki/Aho–Corasick_a
by saagarjha 7y ago
If you're looking to do this kind of matching with a large number of strings, you may want to look at Aho-Corasick: https://en.wikipedia.org/wiki/Aho–Corasick_algorithm https://en.wikipedia.org/wiki/Aho–Corasick_algorithm