NAME
|
regcomp, regcomplit, regcompnl, regexec, regsub, rregexec, rregsub,
regerror – regular expression |
SYNOPSIS
|
#include <u.h> #include <libc.h> #include <regexp.h> |
DESCRIPTION
Regcomp compiles a regular expression and returns a pointer to
the generated description. The space is allocated by malloc(2)
and may be released by free. Regular expressions are exactly as
in regexp(6).
|
SOURCE
|
/sys/src/libregexp |
SEE ALSO
|
grep(1) |
DIAGNOSTICS
|
Regcomp returns 0 for an illegal expression or other failure.
Regexec returns 0 if string is not matched. |
BUGS
|
There is no way to specify or match a NUL character; NULs terminate
patterns and strings. |