
15 Jul
2010
15 Jul
'10
12:28 a.m.
prad wrote:
i looked at http://hackage.haskell.org/packages/archive/regex-tdfa/1.1.3/doc/html/Text-R... 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