HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleregex-1.1.0.2Haskell2010

Text.RE

Contents
  1. The Tutorial
  2. How to use this library
  3. Further Use
  • Packageregex-1.1.0.2
  • Exports0
  • LanguageHaskell2010
  • LicenceBSD-3-Clause

The Tutorial

We have a regex tutorial at http://tutorial.regex.uk.

How to use this library

This module just provides a brief overview of the regex package. You will need to import one of the API modules of which there is a choice which will depend upon two factors:

  • Which flavour of regular expression do you want to use? If you need Posix flavour REs then you will want the TDFA modules, otherwise its PCRE for Perl-style REs.

  • What type of text do you want to match: (slow) Strings, ByteString, ByteString.Lazy, Text, Text.Lazy or the anachronistic Seq Char or indeed some good old-fashioned polymorphic operators?

While we aim to provide all combinations of these choices, some of them are currently not available. In the regex package we have:

The PCRE modules are contained in the separate regex-with-pcre package:

  • Text.RE.PCRE.ByteString

  • Text.RE.PCRE.ByteString.Lazy

  • Text.RE.ZeInternals.PCRE

  • Text.RE.PCRE.Sequence

  • Text.RE.PCRE.String

  • Text.RE.PCRE

Further Use

For more specialist applications we have the following: