[Haskell-cafe] why no replace function in our regular expression libs ?
cgaebel at uwaterloo.ca
Fri Jan 25 20:17:46 CET 2013
I've needed this recently, too.
End result: I wrote an "Attoparsec.Parser Text", and ran the text through
A regex would have been much nicer...
On Fri, Jan 25, 2013 at 2:06 PM, Simon Michael <simon at joyful.com> wrote:
> People have put a lot of work into regular expression libraries on
> haskell. Yet it seems very few of them provide a replace/substitute
> function - just regex-compat and regepr as far as I know. Why is that ?
> #haskell says:
> <sclv> iirc its because that's a really mutatey operation in the
> underlying c libs
> <sclv> should be simple enough to write a general purpose wrapper layer
> that uses captures to create the effect
> Secondly, as of today what do y'all do when you need that functionality
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe