Regular expressions in Haskell

A Regular expression (regexp), such as ``a+b+'', is a pattern that can be used to express a searching problem. (In this case the pattern matches a string of 1 or more a's followed by a string of 1 or more b's.)

There are a number of regular expression libraries around. One of the best can be found in the Perl programming language. The new GHC regexp library, provided here, is a regular expression package for the purely functional language Haskell. It has a number of important features:

The regexp library works with all current versions of GHC (the Glasgow haskell compiler).

The regexp library (including all documentation) is available in three versions.