Regexps (Was: Re: An extended version of the Robots...)

Skip Montanaro (skip@automatrix.com)
Sat, 23 Nov 1996 20:55:53 -0500 (EST)


Hallvard> Plain grep regexps may be a good compromise. What's this 'v7'
Hallvard> stuff? Anybody got a (pointer to a) definition? Anybody got
Hallvard> a good public domain regexp implementation?

There are several available. I recommend you check out the POSIX regex
package that (I think) comes with NetBSD, written by regex guru Henry
Spencer. It's not as full-featured as Perl's regex package (nothing is),
but it's available in C source code, it's written to the
POSIX-somethin'-or-other regex spec, so there's a decent chance non-Unix
OS's that try to be POSIX-compliant will have a version, there are hooks
into other languages, and it's widely available, so it's probably
well-debugged. I use a Python module called pregex, written by Neal Becker
regularly.

Check ftp://ftp.ctd.comsat.com/pub/pregex-0.7.tar.gz for a copy the both the
regex library and Neal's Python module.

Skip Montanaro | Musi-Cal: http://concerts.calendar.com/
skip@calendar.com | "It doesn't matter where you get your appetite as
(518)372-5583 | long as you eat at home." -- Sloan Wainwright
_________________________________________________
This messages was sent by the robots mailing list. To unsubscribe, send mail
to robots-request@webcrawler.com with the word "unsubscribe" in the body.
For more info see http://info.webcrawler.com/mak/projects/robots/robots.html