Skip to content

Instantly share code, notes, and snippets.

View agrafix's full-sized avatar
🛰️
Haskell

Alexander Thiemann agrafix

🛰️
Haskell
View GitHub Profile
@agrafix
agrafix / PCRETest.hs
Last active December 22, 2015 03:58
testRegex fails using GHC 7.6.1 and regex-pcre 0.94.4
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."