String matching

Simon Marlow simonmar@microsoft.com
Wed, 29 Aug 2001 11:55:11 +0100


> I'm adding a search function to my www forum implemented in Haskell.
>=20
> Is there a Prelude/Library function that will efficiently=20
> find a pattern
> in a String? Nothing in modules PreludeList or List seem to=20
> fit the bill.

If you're using GHC, then there's a pretty good interface to the GNU
regex library in module RegexString (see
http://www.haskell.org/ghc/docs/latest/set/regexstring.html).

Cheers,
	SImon