strexp(3W) — MISC. REFERENCE MANUAL PAGES
Regular Expression Utilities
NAME
strexp
SYNOPSIS
#include <expcmp.h>
...
extern char ∗ strexp(string, curp, expression)
char ∗ string;
char ∗ curp;
char ∗ expression;
DESCRIPTION
The strexp function is used to perform a regular expression forward scan of string for expression starting at curp.
THE REGULAR EXPRESSION LANGUAGE USED IS
c - match c
[<set>] - match any character in <set>
[!<set>] - match any character not in <set>
∗ - match any character(s)
^ - match must start at curp
RETURN VALUE
NULL is returned if expression cannot be found in string; otherwise a pointer to the first character in the substring which matches expression is returned. The function streexp(3) can be used to get the pointer to the last character in the match.
SEE ALSO
Sun Release 4.0 — Last change: