Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PATTERNS                            Aegis                             PATTERNS



NAME
     patterns - regular expression syntax and usage

DESCRIPTION
     This file summarizes the regular expression syntax used for pattern
     matching in Apollo-supplied software.  Regular expression syntax is
     described in detail in the Domain Display Manager Command Reference.

     Character:     Matches:

     %              Beginning of line, when at beginning of expression.
                    Otherwise, matches %.

     $              End of line, when at end of expression.  Otherwise,
                    matches $.

     ?              Any single character except newline.

     *              Zero or more occurrences of preceding expression.  As
                    first character in expression, matches *.

     [string]       One occurrence of any single character in 'string'.

     [~string]      One occurrence of any single character except those in
                    'string' and newline.

                    You may specify a range of characters or digits in are
                    valid.  Most special characters lose their special
                    meanings when included in 'string'.  If not the first
                    character after [, the tilde specifies a ~ character.  To
                    include a literal ], ~, -, or @ in 'string', precede it
                    with an @.

     @f             Form feed.

     @n             newline.

     @t             Tab.

     @c             Special character 'c', e.g. @$, @%.

     {expr}         Tags 'expr' for use in substitution string. Substitution
                    strings are used in the DM and shell ed commands s
                    (substitute), and by the shell chpat (change_pattern) and
                    edstr (edit_stream) commands. Refer to tagged expressions
                    as @1, @2, etc.

     any other character
                    Literal character.

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