[Haskell-cafe] checking regular expressions

Uwe Schmidt uwe at fh-wedel.de
Thu Nov 8 10:21:07 EST 2007

Hi all,

what's the simplest way to check, whether a given string
is a wellformed regular expression?

In the API there's just a "mkRegex" which does not make
any checks, and the "matchRegex" which throws an exception
when the regex isn't wellformed.

So do I need the IO monad for checking a regex?


More information about the Haskell-Cafe mailing list