Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strexp(3W) — OpenWindows V2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

strrexp(3)

streexp(3)

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

strrexp(3), streexp(3)

Sun Release 4.0  —  Last change:

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026