Re: [Haskell-cafe] Regex string replacement

2012-08-18 Thread José Romildo Malaquias
On Sat, Aug 18, 2012 at 09:39:01AM -0300, Marco Túlio Pimenta Gontijo wrote: > Hi Romildo. > > On Sat, Aug 18, 2012 at 9:18 AM, José Romildo Malaquias > wrote: > (...) > > I am looking for a substring replacement based on Perl like regular > > expressions that would let me use part of the origina

Re: [Haskell-cafe] Regex string replacement

2012-08-18 Thread Marco Túlio Pimenta Gontijo
Hi Romildo. On Sat, Aug 18, 2012 at 9:18 AM, José Romildo Malaquias wrote: (...) > I am looking for a substring replacement based on Perl like regular > expressions that would let me use part of the original string in the > replacement string. Something like: > >reReplace "name is (.*)\\." "h

[Haskell-cafe] Regex string replacement

2012-08-18 Thread José Romildo Malaquias
Hello. I am looking for a substring replacement based on Perl like regular expressions that would let me use part of the original string in the replacement string. Something like: reReplace "name is (.*)\\." "hi \1!" "my name is john." which would result in "hy john!" Any help? Romildo