I've been searching for some documentation or a tutorial on Haskell regular expressions for ages. There's no useful information on the HaskellWiki page. It simply gives the cryptic message:

Documentation Coming soonish.

There is a brief blog post which I have found fairly helpful, however it only deals with Posix regular expressions, not PCRE.

I've been working with Posix regex for a few weeks and I'm coming to the conclusion that for my task I need PCRE.

My problem is that I don't know where to start with PCRE in Haskell. I've downloaded regex-pcre-builtin with cabal but I need an example of a simple matching program to help me get going.

Is it possible to implement multi-line matching?

Can I get the matches back in this format: [(MatchOffset,MatchLength)] ?

? What other formats can I get the matches back in?

Thank you very much for any help!