Fast searching, splitting and replacing of ByteStrings

Version on this page:
LTS Haskell 22.30:
Stackage Nightly 2024-07-24:
Latest on Hackage:

See all snapshots stringsearch appears in

BSD-3-Clause licensed by Daniel Fischer, Chris Kuklewicz, Justin Bailey
Maintained by [email protected]
This version can be pinned in stack with:stringsearch-,4251

This package provides several functions to quickly search for substrings in strict or lazy ByteStrings. It also provides functions for breaking or splitting on substrings and replacing all occurrences of a substring (the first in case of overlaps) with another. GHC before 6.10 are no longer supported, other compilers only if they support BangPatterns. If you need it to work with other compilers, send a feature request.