Haskell Regex replace

Posted in:

Does anyone have a function for doing a regex replace in Haskell? I found this: regex replace example but it is about 2 years old and doesn't compile on my machine (even after adding {-# OPTIONS_GHC -fglasgow-exts -fbang-patterns #-}), and I'm too lazy much of a newbie to work out how to fix it.

Also, I need a solution that uses the regex-pcre or pcre-light libraries, rather than regex-posix. Any help would be much appreciated.

Comments §

Comments should load when you scroll to here...