Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

OSS Library Calls (n - r) re_exec(3)
NAME
|
re_exec - Executes regular expressions |
LIBRARY |
G-series native Guardian processes: $SYSTEM.SYSnn.ZSTFNSRL |
G-series native OSS processes: /G/system/sysnn/zstfnsrl |
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL |
H-series OSS processes: /G/system/zdllnnn/zcrtldll |
SYNOPSIS
|
#include <re_comp.h> |
int re_exec( |
const char *string); |
PARAMETERS
|
string ||
Is a pointer to the string that the re_exec() function searches for matches to the |
last compiled regular expression. |
DESCRIPTION |
The re_exec() function compares the string pointed to by the string parameter with the last reg- |
ular expression compiled by the re_comp() function. |
The re_exec() function supports simple regular expressions. |
The following one-character regular expression strings match a single character: |
|
1. ||
An ordinary character (not one of the special characters discussed in paragraph 2) is a |
one-character regular expression string that matches itself. |
|
2. ||
A backslash (\) followed by a special character is one-character regular expression string |
that matches a literal appearance of that character itself. Some special characters are |
always special characters while others are only special in certain circumstances. |
|
||
Characters that are special when they appear anywhere but inside square brack- |
ets ([ ]) are "." (period), "*" (asterisk), "[" (left square bracket), and "\" |
(backslash). |
|
||
The "ˆ" character (circumex) is only special when it appears at the beginning of |
a regular expression string or when it is the rst character with a set of square |
brackets. |
|
||
The "$" character (dollar sign) is only special when it appears at the very end of |
a regular expression string. |
527187-007 Hewlett-Packard Company 585