Skip to content

Instantly share code, notes, and snippets.

Avatar
🛰️
Haskell

Alexander Thiemann agrafix

🛰️
Haskell
View GitHub Profile
@agrafix
agrafix / PCRETest.hs
Last active Dec 22, 2015
testRegex fails using GHC 7.6.1 and regex-pcre 0.94.4
View PCRETest.hs
import Text.Regex.PCRE
regex = "dein(en)? ([^\\s]+)"
expected = [ [ "dein F\252ller", "", "F\252ller"]
, [ "deinen F\246hn", "en", "F\246hn"]
]
-- consider this being read from a file
inputStr = "Nimm dein F\252ller und nimm deinen F\246hn mit."