regex-examples: Tutorial, tests and example programs for regex

[ bsd3, program, text ] [ Propose Tags ] [ Report a vulnerability ]

Tutorial, tests and example programs for regex, 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]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.2.0.0, 0.2.0.1, 0.2.0.3, 0.2.0.4, 0.3.0.0, 0.5.0.0, 0.6.0.0, 0.6.0.1, 0.7.0.0, 0.8.0.0, 0.9.0.0, 0.10.0.0, 0.10.0.1, 0.10.0.2, 0.10.0.3, 0.11.0.0, 0.11.1.0, 0.12.0.0, 0.13.0.0, 0.14.0.0, 1.0.0.0, 1.0.1.0, 1.0.1.1, 1.0.1.2, 1.0.1.3, 1.0.1.4, 1.0.1.5, 1.0.2.0, 1.1.0.0, 1.1.0.1, 1.1.0.2 (info)
Change log changelog
Dependencies array (>=0.4), base (>=4 && <5), base-compat (>=0.6 && <1), blaze-html (>=0.8.1.0), bytestring (>=0.10), containers (>=0.4), data-default (>=0.5.3), directory (>=1.2.1.0), filepath (>=1.3.0.2), hashable (>=1.2), heredoc (>=0.2.0.0), regex, regex-base (>=0.93), regex-pcre-builtin (>=0.94), regex-tdfa (>=1.3.1.0), regex-with-pcre, shelly (>=1.6.1.2), smallcheck (>=1.1.1), stm, tasty (>=0.10.1.2), tasty-hunit (>=0.9.2), tasty-smallcheck (>=0.8.0.1), template-haskell (>=2.7), text (>=1.2), time (>=1.4.2), time-locale-compat (>=0.1), transformers (>=0.2.2), typed-process, unordered-containers (>=0.2), utf8-string (>=1) [details]
License BSD-3-Clause
Copyright Chris Dornan 2016-2017
Author Chris Dornan
Maintainer Chris Dornan <chris@regex.uk>
Category Text
Home page http://regex.uk
Bug tracker http://issues.regex.uk
Source repo head: git clone https://github.com/iconnect/regex.git
this: git clone https://github.com/iconnect/regex.git(tag 1.1.0.2)
Uploaded by ChrisDornan at 2022-06-20T13:57:15Z
Distributions NixOS:1.1.0.2
Reverse Dependencies 1 direct, 0 indirect [details]
Executables re-tutorial-tools, re-tutorial-testbench, re-tutorial-replacing, re-tutorial-options, re-tutorial, re-top, re-tests, re-sort-imports, re-prep, re-nginx-log-processor, re-include, re-gen-modules, re-gen-cabals
Downloads 17441 total (124 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2022-06-20 [all 1 reports]

Readme for regex-examples-1.1.0.2

[back to package description]

regex

regex is a regular expression toolkit for regex-base with:

  • a text-replacement toolkit with type-safe text-replacement templates;
  • special datatypes for matches and 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 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 back ends;
  • comprehensive documentation, tutorials and copious examples.

See the About page for details.

regex and regex-examples

The library and tutorial, tests and examples have been split across two packages:

  • the regex package contains the regex library with the Posix TDFA back end
  • the regex-with-pcre library package contains the extra modules needed for the PCRE back end
  • the regex-examples package contains the tutorial, tests and example programs.

Road Map

See the Roadmap page for details.

The regex blog

Check out the regex blog for news articles and discussion concerning all things regex.

Build Status

Hackage BSD3 License Un*x build Windows build Coverage

See build status page for details.

Installing the Package

The package can be easily installed with cabal or stack on GHC-8.0, 7.10 or 7.8 for the above platforms. See the Installation page for details.

The Tutorial Tests and Examples

See the Tutorial page and Examples page for details.

Helping Out

If you have any feedback or suggestion then please drop us a line.

The Contact page has more details.

The API

The Haddocks can be found at http://hs.regex.uk.

The Macro Tables

The macro environments are an important part of the package and are documented here.

The regex.uk Directory

A handy overview of the regex.uk domain can be found here.

The Changelog

The changelog is posted here.

The Authors

This library was written and is currently maintained by Chris Dornan aka @cdornan