Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VAXTPU SCAN — VMS 5.2

 SCAN

    Returns a pattern that matches the longest string of characters that
    does not contain any of the characters included in the parameter
    string, range, or buffer.  The pattern that is returned does not cross
    record (line) boundaries.  The pattern starts at the current character
    position and continues to the end of the current line or until it finds
    one of the characters in the string used as a parameter.  SCAN fails if
    it finds no characters other than those present in its argument.  SCAN
    succeeds if the first character encountered in the search is one not in
    the set.

 Syntax

    pattern := SCAN ({string | range | buffer})

 Parameters

    string               A quoted string or an expression that evaluates to
                         a string.  SCAN does not match any character that
                         appears in the string.

    range                A range or an expression that evaluates to a
                         range.  SCAN does not match any character that
                         appears in the range.

    buffer               A buffer or an expression that evaluates to a
                         buffer.  SCAN does not match any character that
                         appears in the buffer.

 Example

    pat1 := SCAN ('abc');

    This assignment statement stores a pattern that will match the longest
    string of characters that does not contain a, b, or c in pat1.

 Related Topics

    NOTANY    SCANL    SPAN    SPANL

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