The regex package

[ Tags: 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]


Versions,,,,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Change log changelog
Dependencies array (>=0.4), base (==4.*), 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 BSD3
Copyright Chris Dornan 2016-2017
Author Chris Dornan
Category Text
Home page
Bug tracker
Source repo head: git clone
this: git clone
Uploaded Mon Jan 30 23:05:08 UTC 2017 by ChrisDornan
Updated Tue Mar 14 13:21:44 UTC 2017 by HerbertValerioRiedel to revision 1   [What is this?]
Distributions NixOS:
Executables re-tutorial, re-pp, re-nginx-log-processor, re-include, re-gen-modules
Downloads 6456 total (160 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user [build log]
All reported builds failed as of 2017-01-30 [all 1 reports]
Hackage Matrix CI




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

For package maintainers and hackage trustees

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


  • [X] 2017-01-26  Pre-release (I)
  • [X] 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.