MPE/iX Shell and Utilities Reference Manual, Vol 2

regexp(3) MPE/iX Shell and Utilities regexp(3)
Several regular expressions can be concatenated to form a larger regular expression.
Ex and Vi
The metacharacters available in the Ex and Vi editors are:
ˆ$.*\(\)[\\<\>
The regular expressions accepted by Ex and Vi are similar to Basic regular expressions, ex-
cept that the \{ and \} characters are not special, and the [: :] character class expression are
not available. The following two extra metacharacters are available:
\< This matches the beginning of an identifier, defined as the boundary between non-al-
phanumerics and alphanumerics (including underscore). This matches no characters,
only the context.
\> This construct is analogous to the \< notation except that it matches the end of an
identifier.
Notation awk ed egrep expr sed vi
. ••
ˆ ••
$ ••
[...] ••
[::] ••
re* ••
re+ ••
re? ••
re|re ••
\d ••
(...) ••
\(...\) ••
\<
\>
\{ \} ••
Table 3-3: Regular Expression Features
Summary
The commands that use Basic and Extended regular expressions are as follows.
Basic
csplit, ed, grep, expr, sed, and vi.
Extended
awk, egrep, and sed with the -E option.
3-36 Miscellaneous Information