MPE/iX Shell and Utilities Reference Manual, Vol 2
regexp(3) MPE/iX Shell and Utilities regexp(3)
Table 3-4 summarizes which features apply to which MPE/iX Shell and Utilities commands.
EXAMPLES
The following patterns are given as illustrations, along with plain language descriptions of
what they match:
abc matches any line of text containing the three letters abc in that order.
a.c matches any string beginning with the letter a, followed by any character, followed
by the letter c.
ˆ.$ matches any line containing exactly one character (the newline is not counted).
a(b∗|c∗)d
matches any string beginning with a letter a, followed by either zero or more of the
letter b, or zero or more of the letter c, followed by the letter d.
.∗ [a–z]+ .∗
matches any line containing a word, consisting of lowercase alphabetic characters,
delimited by at least one space on each side.
(morty).∗\1
morty.∗morty
These expressions both match lines containing at least two occurrences of the string
morty.
[[:space:][:alnum:]]
Matches any character that is either a white space character or alphanumeric.
PORTABILITY
The Basic regular expressions are available on most
UNIX systems. Extended regular expres-
sions may not be. POSIX
-compliant systems support the Extended set.
SEE ALSO
awk(1), ed(1), grep(1), expr(1), sed(1), vi(1), fnmatch(3), regcomp(3)
Miscellaneous Information 3-37