[Haskell-beginners] Re: why is something different within a
function when it comes out?
Michael Mossey
mpm at alumni.caltech.edu
Wed Jul 14 20:28:18 EDT 2010
prad wrote:
> i looked at
> http://hackage.haskell.org/packages/archive/regex-tdfa/1.1.3/doc/html/Text-Regex-TDFA.html
> but am having difficulty figuring things out from the documentation -
> and there doesn't seem to be any multiline feature.
> surely there is some way to do this!
>
> also, python had a re.sub so you can replace things using regex
> searchs. how would you go about doing that in haskell?
>
For a parsing job, you might consider Parsec rather than regular
expressions. Parsec is present by default with the Haskell Platform. I have
not found any single comprehensive documentation on the latest version of
Parsec... I had to ask people for help a lot.
Mike
More information about the Beginners
mailing list