Henry Spencer's BSD regular expression library modified to allow building as a shared library.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
COPYRIGHT import Dec 26, 2014
INSTALL import Dec 26, 2014
Makefile.am Rename test_SOURCES to test_sources to avoid a warning Nov 25, 2015
Makefile.in Regeneration of derived files Nov 25, 2015
Makefile.orig import Dec 26, 2014
README remove the link to ftp.zoo.toronto.edu, it's dead. Nov 29, 2016
WHATSNEW Increment date Nov 26, 2015
aclocal.m4 Regeneration of derived files Nov 25, 2015
autogen.sh Add -c to get copies instead of symlinks. Nov 25, 2015
cclass.h import Dec 26, 2014
cname.h import Dec 26, 2014
compile Regeneration of derived files Nov 25, 2015
config.guess copy automake files instead of symlink Feb 25, 2015
config.sub copy automake files instead of symlink Feb 25, 2015
configure Regeneration of derived files Nov 25, 2015
configure.ac import Dec 26, 2014
debug.c import Dec 26, 2014
engine.c import Dec 26, 2014
install-sh Regeneration of derived files Nov 25, 2015
ltmain.sh Regeneration of derived files Nov 25, 2015
main.c import Dec 26, 2014
missing Regeneration of derived files Nov 25, 2015
mkh import Dec 26, 2014
mkinstalldirs copy automake files instead of symlink Feb 25, 2015
regcomp.c Bug fix for integer overflow in regcomp Feb 25, 2015
regerror.c import Dec 26, 2014
regex2.h import Dec 26, 2014
regexec.c import Dec 26, 2014
regfree.c import Dec 26, 2014
rxspencer.3 import Dec 26, 2014
rxspencer.7 import Dec 26, 2014
split.c import Dec 26, 2014
test-driver Regeneration of derived files Nov 25, 2015
test1.sh import Dec 26, 2014
test2.sh import Dec 26, 2014
test3.sh import Dec 26, 2014
tests import Dec 26, 2014
utils.h import Dec 26, 2014

README

This is a copy of Henry Spencer's regular expression library, with
modifications to the build system:

autoconf/automake/libtool support has been added to allow building a
shared library on many platforms (in theory).  In other cases, a
static library will be built.

The names of installed files have been changed to avoid conflict with
other regex libraries.

See also: https://garyhouston.github.io/regex/

Installation
============

Ignore the notes in the original README below and try something like:

./configure
make
make check
make install

See the INSTALL file for more details.

Usage
=====

Library:  -lrxspencer
Header: #include <rxspencer/regex.h>
Man Pages: rxspencer(3), rxspencer(7)

Gary Houston,  ghouston@arglist.com

---- original README follows --------
alpha3.8 release.
Tue Aug 10 15:51:48 EDT 1999
henry@spsystems.net  (formerly henry@zoo.toronto.edu)

See WHATSNEW for change listing.

installation notes:
--------
Read the comments at the beginning of Makefile before running.

Utils.h contains some things that just might have to be modified on
some systems, as well as a nested include (ugh) of <assert.h>.

The "fake" directory contains quick-and-dirty fakes for some header
files and routines that old systems may not have.  Note also that
-DUSEBCOPY will make utils.h substitute bcopy() for memmove().

After that, "make r" will build regcomp.o, regexec.o, regfree.o,
and regerror.o (the actual routines), bundle them together into a test
program, and run regression tests on them.  No output is good output.

"make lib" builds just the .o files for the actual routines (when
you're happy with testing and have adjusted CFLAGS for production),
and puts them together into libregex.a.  You can pick up either the
library or *.o ("make lib" makes sure there are no other .o files left
around to confuse things).

Main.c, debug.c, split.c are used for regression testing but are not part
of the RE routines themselves.

Regex.h goes in /usr/include.  All other .h files are internal only.
--------