portable regexp C lib

Is there a C regexp library that is portable and builds on QNX?

The docs for Watcom’s regcomp state that it’s QNX only. I need to build on
other unixes too.

TIA, Bruce.

Bruce Edge wrote:

Is there a C regexp library that is portable and builds on QNX?

The docs for Watcom’s regcomp state that it’s QNX only. I need to build on
other unixes too.

TIA, Bruce.

Does it also say it’s POSIX 1003.2? The docs. for my version do. If it
does
then it should be available on any UNIX or UNIX-like system which has
this
POSIX cert.

It’s certainly the same definition as regcomp on IRIX, Solaris, Linux
and Digital UNIX if that helps.

Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555

Nigel Wade wrote:

Bruce Edge wrote:

Is there a C regexp library that is portable and builds on QNX?

The docs for Watcom’s regcomp state that it’s QNX only. I need to build on
other unixes too.

TIA, Bruce.

Does it also say it’s POSIX 1003.2? The docs. for my version do. If it
does
then it should be available on any UNIX or UNIX-like system which has
this
POSIX cert.

It’s certainly the same definition as regcomp on IRIX, Solaris, Linux
and Digital UNIX if that helps.

OK, that’s good enough for me.

Thanks, Bruce.

Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : > nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555

In article <3991B9BE.9C9DFAE2@sattel.com>, Bruce says…

Is there a C regexp library that is portable and builds on QNX?

The docs for Watcom’s regcomp state that it’s QNX only. I need to build on
other unixes too.

The GNU awk distribution contains a regex module with a GNU Library license.
(ftp.gnu.org)

Regards

Armin

The SYSTEMS: section says only QNX because Watcom never developed for any
other POSIX environments.

Nigel Wade <nmw@ion.le.ac.uk> wrote in message
news:3997DEF0.CDC300FD@ion.le.ac.uk

Bruce Edge wrote:

Is there a C regexp library that is portable and builds on QNX?

The docs for Watcom’s regcomp state that it’s QNX only. I need to build
on
other unixes too.

TIA, Bruce.



Does it also say it’s POSIX 1003.2? The docs. for my version do. If it
does
then it should be available on any UNIX or UNIX-like system which has
this
POSIX cert.

It’s certainly the same definition as regcomp on IRIX, Solaris, Linux
and Digital UNIX if that helps.

Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : > nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555

Bruce Edge wrote:

Is there a C regexp library that is portable and builds on QNX?

The docs for Watcom’s regcomp state that it’s QNX only. I need to build on
other unixes too.

TIA, Bruce.

Here is a “nearly-public-domain reimplementation” of Henry Spencer’s
regexp code. It compiles and works well on most systems, including NT,
QNX, etc. I am attaching both a tar’d-gzip’d and a ZIP version of the
library sources. Please look at the readme.txt file for license details.

-Bill Boyle


From the original author’s comments:

This is a nearly-public-domain reimplementation of the V8 regexp(3)
package.
It gives C programs the ability to use egrep-style regular expressions,
and
does it in a much cleaner fashion than the analogous routines in SysV.

Copyright (c) 1986 by University of Toronto.
Written by Henry Spencer. Not derived from licensed software.

Permission is granted to anyone to use this software for any
purpose on any computer system, and to redistribute it freely,
subject to the following restrictions:

  1. The author is not responsible for the consequences of use of
    this software, no matter how awful, even if they arise
    from defects in it.

  2. The origin of this software must not be misrepresented, either
    by explicit claim or by omission.

  3. Altered versions must be plainly marked as such, and must not
    be misrepresented as being the original software.