On Tue, Jul 5, 2011 at 11:01 AM, Tillmann Vogt <Tillmann.Vogt@rwth-aachen.de> wrote:
I looked at Data.Text http://hackage.haskell.org/packages/archive/text/0.5/doc/html/Data-Text.html
and http://hackage.haskell.org/packages/archive/stringsearch/0.3.3/doc/html/Data-ByteString-Search.html

but they don't have a function that can search several substrings in one run.

Here's what you want: http://hackage.haskell.org/packages/archive/text-icu/0.6.3.4/doc/html/Data-Text-ICU-Regex.html