home *** CD-ROM | disk | FTP | other *** search
-
- This is a version of the "nearly-public-domain" regexp(3) regular expression
- matching library by Henry Spencer, I have modified it slightly to meet my
- needs, this is what I've done,
-
- 1) if "__STDC__" is defined ANSI function prototypes are used, this is
- so a register based call-interface is possible.
- 2) added a new function regsublen(), this performs a dry run of the
- regsub() function returning the length of the string needed to hold
- the output from regsub().
- 3) changed regexec(prog,str) to regexec2(prog,str,eflags) with macro for
- regexec(). This is so I can have the flag REG_NOTBOL which signifies
- that the string passed to regexec[2]() is not actually the start of a
- line.
- 4) support for case-insignificant matching (with the flag REG_NOCASE)
-
- John
-