Regex Portability

Be careful of choosing a regex library in Haskell. It may not work across different operating systems.

From haskellwiki,

If you want a bug-free and/or portable POSIX extended regular expression library to use from Haskell, then regex-posix will not help you. You should use the regex-tdfa package instead.


If you want support for replacements, use text-regex-replace which uses text-icu.