regex: A Regular Expression Toolkit for regex-base

[ bsd3, library, text ] [ Propose Tags ]

A Regular Expression Toolkit for regex-base with Compile-time checking of RE syntax, data types for matches and captures, a text replacement toolkit, portable options, high-level AWK-like tools for building text processing apps, regular expression macros and test bench, a tutorial and copious examples.

[Skip to Readme]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Change log changelog
Dependencies array (>=0.4), base (>=4 && <5), bytestring (>=, containers (>=0.4), directory (>=, hashable (>=, heredoc (>=, regex, regex-base (>=0.93.2), regex-pcre-builtin (>=, regex-tdfa (>=1.2.1), regex-tdfa-text (>=, shelly (>=, smallcheck (>=1.1.1), tasty (>=, tasty-hunit (>=0.9.2), tasty-smallcheck (>=, template-haskell (>=2.7), text (>=, time (>=, transformers (>=, unordered-containers (>= [details]
License BSD-3-Clause
Copyright Chris Dornan 2016-2017
Author Chris Dornan
Revised Revision 1 made by HerbertValerioRiedel at 2017-03-14T13:21:44Z
Category Text
Home page
Bug tracker
Source repo head: git clone
this: git clone
Uploaded by ChrisDornan at 2017-01-30T23:05:08Z
Distributions LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 9 direct, 2 indirect [details]
Executables re-tutorial, re-pp, re-nginx-log-processor, re-include, re-gen-modules
Downloads 25072 total (165 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user [build log]
All reported builds failed as of 2017-01-30 [all 1 reports]

Readme for regex-

[back to package description]

Hackage BSD3 License Un*x build Windows build Coverage

regex: A Regular Expression Toolkit for regex-base

regex extends regex-base with:

  • a text-replacement toolkit
  • special datatypes for many matches, first match and individual captures
  • compile-time checking of RE syntax
  • a unified means of controlling case-sensitivity and multi-line options
  • high-level AWK-like tools for building text processing apps
  • the option of using match operators with reduced polymorphism on the text and/or result types
  • regular expression macros including
    • a number of useful RE macros
    • a test bench for testing and documenting new macro environments
  • built-in support for the TDFA and PCRE backends
  • comprehensive documentation and copious examples


  • 2017-01-26  Pre-release (I)

  • 2017-01-30  Pre-release (II)

  • 2017-02-06  RFC

  • 2017-02-20  a candidate stable release

  • 2017-03-20  first stable release

The Web Page

We have a web page with a tutorial, a major example and and more examples than you can shake a stick at (most of them used in the package itself).

The Macro Tables

The macro environments are an important part of the package and they are documented in these tables.