Is there a standard way to split a string in Haskell?
lines and words work great from splitting on a space or newline, but surely there is
lines
words
In the module Text.Regex (part of the Haskell Platform), there is a function:
splitRegex :: Regex -> String -> [String]
which splits a string based on a regular expression. The API can be found at Hackage.