[Haskell-beginners] how to use regex replace

Tom Tobin korpios at korpios.com
Thu Dec 10 12:56:56 EST 2009


On Thu, Dec 10, 2009 at 11:20 AM, Adolfo Builes
<builes.adolfo at googlemail.com> wrote:
> Hi,
> Bryan O'Sullivan has an excellent blog post about regex [1]. You could also
> check Real World Haskell [2].
>
> [1]-
> http://www.serpentine.com/blog/2007/02/27/a-haskell-regular-expression-tutorial/
> [2]-
> http://book.realworldhaskell.org/read/efficient-file-processing-regular-expressions-and-file-name-matching.html#glob.regex

I'd actually recommend the pcre-light package:

http://hackage.haskell.org/package/pcre-light

Not only does it give you Perl-compatible regexes, but it also
*doesn't* force you through the IO monad.  It's good stuff.


More information about the Beginners mailing list