All Unkept

Haskell Regex replace

by Luke Plant
Posted in: Haskell  —  July 30, 2008 at 05:52 PM

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 §

blog comments powered by Disqus