[web-devel] [Newbie][Parsec] Skipping to desired phrase
ciemniewski.kamil at gmail.com
Fri Jul 29 10:27:32 CEST 2011
I've got a String containing html and I'd like
to extract from it some informations..
Specifically these informations start at point
"after" some phrase ( let say "nicelinks").
How do I skip all the html up to the point
of this phrase?
I've done that much already:
p_rest = do
skipMany ((try (string "nicelinks")) <|> anyHeadString)
text <- many1 anyChar
anyHeadString = do
c <- anyChar
But after doing:
parse p_rest  html
Left (line 112, column 15):
unexpected end of input
What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel