NetBSD Taking TRE in the C Library

by Ville Laurikari on August 9, 2009

Earlier this year Alistair Crooks contacted me, telling that they would be interested in replacing the old NetBSD C library regex implementation with libtre.  The only problem was the license (LGPL).  I thought about it for about two seconds, and decided to finally release TRE with a BSD license.  So starting from 0.7.6, TRE comes with a 2-clause BSD license instead of the LGPL.

In a Google Summer of Code project, Matthias-Christian Ott has now ported TRE to NetBSD:

NetBSD’s current regular expression library was initially written by Henry Spencer in 1986, when ASCII was the de facto standard. Moreover, Spencer described it as slow. So it makes real sense to replace it and seek for alternatives.

The project home page is here.

{ 5 comments… read them below or add one }

1 Pedro Giffuni September 17, 2009 at 01:44

Great news, hope the other BSDs will follow suit!

2 regulator May 6, 2010 at 17:03

Good move. Would like to see TRE API’s become the new defacto standard.

3 ab July 24, 2010 at 23:48

thanks for doing this.
/netbsd user

4 ahoka September 4, 2010 at 20:02


I just hooked it into the build on NetBSD, so people can use libtre as the regex engine in NetBSD from now on the current branch. It is optional at the moment, but if it works out we may switch in the future.

5 thoran April 6, 2014 at 08:11

Why not dual licence it?

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Next post: