While trying to apply the regular expression below to each element in a list (test), I get an error. This is what I am trying to do in ghci
import Text.Regex.TDFA
let test = ["<lobbying_firm>The CrisCom Company</lobbying_firm>","<registration_year>2013</registration_year>"]
let regExp = "\\>(.)*\\<"
let result = map (=~ regExp :: String) test
How can I do this? Any ideas?