man(1) Manual page archive


     REGEXP(3)                                               REGEXP(3)

     NAME
          regcomp, regexec, regsub, regerror - regular expression
          handler

     SYNOPSIS
          #include <regexp.h>

          regexp *regcomp(exp)
          char *exp;

          int regexec(prog, string)
          struct regexp *prog;
          char *string;

          regsub(prog, source, dest)
          struct regexp *prog;
          char *source;
          char *dest;

          regerror(msg)
          char *msg;

     DESCRIPTION
          Regcomp compiles an egrep(1)-
          styleregularexpressionandreturns a pointer to an object with
          the following structure.  The object is allocated by
          malloc(2) and may be released by free.