[Haskell-cafe] Separate a string into a list of strings

Clifford Beshers clifford.beshers at linspire.com
Mon Jun 12 19:52:44 EDT 2006

Brandon Moore wrote:
> Going by man grep, those [:foo:] classes are only special inside a 
> character class, otherwise [:space:]* = [aceps:]*.
>   Prelude Text.Regex> splitRegex (mkRegex "[[:space:]]*,[[:space:]]*")
>   "Haskell, Haskell, and Haskell"
>   ["Haskell","Haskell","and Haskell"]

The smart money was on user error.   Thanks.

More information about the Haskell-Cafe mailing list