yes it's very simple but does satisfy my need. Thank you very much!
actually I had spent time researching the regex packages on Hackage, it seems they doesn't provide such APIs for replace, but from my point of view the use of *replace* is as imporant as *match* in regular expression. Or I didn't find the right place?
Thanks again!
> Date: Thu, 10 Dec 2009 17:57:59 +0000
> From: jakubuv@gmail.com
> To: mklklk@hotmail.com
> CC: beginners@haskell.org
> Subject: Re: [Haskell-beginners] how to use regex replace
>
> Hi,
>
> Would Text.Regex.subRegex do? It is in package regex-compat. Usage is
> easy, see [1].
>
> Sincerely,
> jan.
>
> [1]: http://hackage.haskell.org/packages/archive/regex-compat/0.92/doc/html/Text-Regex.html
>
> On Thu, Dec 10, 2009 at 06:50:11PM +0800, Kui Ma wrote:
> >
> > Hi,
> >
> > Can anyone introduce me how to use regex replace or give me web page links about this topic? thank you in advance!
> >
> > Regards
> >
>
>
> --
> Heriot-Watt University is a Scottish charity
> registered under charity number SC000278.
>
Keep your friends updated¡ª even when you¡¯re not signed in.