Download

TRE is licensed under a 2-clause BSD license.  See the full license text here.

Source code

* tre-0.8.0.tar.bz2 19-Sep-2009 372k
* tre-0.8.0.tar.gz 19-Sep-2009 470k
* tre-0.8.0.zip 19-Sep-2009 521k

I’m using darcs for revision control. You can get the latest stable source directly via darcs:

darcs get --set-scripts-executable http://laurikari.net/tre/darcs/stable/

Check the file README.darcs for instructions on how to build from the darcs sources.

You can also browse the darcs repository.

Binaries


Binary packages are available for various systems, but I don’t maintain them myself.  If you maintain or find some TRE packages but they’re not listed here please let me know.

Debian, Ubuntu, etc.

There are Debian packages available for most dpkg -based systems (Debian, Ubuntu, GNU Solaris, etc). The tre-agrep, libtre4, and libtre-dev packages are what you want. Just enable the appropriate sources in /etc/apt/sources.list (e.g. for Ubuntu you want to enable universe) and run

apt-get install tre-agrep libtre4 libtre-dev

to install everything.

FreeBSD

There is a port called libtre.

Mac OS X / Darwin

There is a port called tre over at macports.

NetBSD, IRIX, Interix

TRE is available in pkgsrc.

NeXTStep/Openstep

By zyx101

RPMs

The fedora extras repository has the tre and agrep packages, for example. Try rpmfind for tre to find more RPM packages.

Windows

Windows binaries are available from the gnuwin32 project.

Language bindings

There are bindings for TRE for a bunch of languages:

  • Perl
  • Python (available in the source code package)
  • Haskell