News for hackers. Stuff that matters.
Re:Knuth–Morris–Pratt Illustrated by Terr_ on Tuesday April 16, 2024 @04:51PM (#40057028)
I hope it helps, but if you are just looking for text strings, you might want to benchmark your local regex libraries first. Among other optimizations, they might use that algorithm under the hood for long (foo|bar|baz|...) expressions.

There are no comments on this comment yet.