[Haskell-cafe] A weird bug of regex-pcre
Magicloud Magiclouds
magicloud.magiclouds at gmail.com
Tue Dec 18 07:28:26 CET 2012
Attachment is the test text file.
And I tested my regexp as this:
Prelude> :m + Text.Regex.PCRE
Prelude Text.Regex.PCRE> z <- readFile "test.html"
Prelude Text.Regex.PCRE> let (b, m ,a, ss) = z =~ "<a
href=\"(.*?)\">.*?<img class=\"article-image\"" :: (String, String, String,
[String])
Prelude Text.Regex.PCRE> b
...
n of the Triumvirate</td>\r\n <td class=\"small\">David Rapoza</td>\r\n
<td class=\"small\">\r\n <i>Return to Ravnica</i>\r\n </td>\r\n
<td class=\"small\">10/31/2012</td>\r\n </tr><tr>\r\n <td
class=\"small\"><"
Prelude Text.Regex.PCRE> m
"a href=\"/magic/magazine/article.aspx?x=mtg/daily/activity/1088\"><img
class=\"article-image\" "
More information about the Haskell-Cafe
mailing list