I can't seem to find decent documentation on haskell's POSIX implementation.
Specifically the module Text.Regex.Posix
.
Can anyone point me in the right direction of using multiline matching on a string?
A snippet for the curious:
> extractToken body = body =~ "<textarea[^>]*id=\"wpTextbox1\"[^>]*>(.*)</textarea>" :: String
I'm trying to extract the source of wikipedia pages, however this method clearly falls over when more than one line is involved.