Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VAXTPU SCANL — VMS 5.2

 SCANL

    Returns a pattern that will match the longest string of characters that
    does not contain any of the characters included in the parameter
    string, range, or buffer.  SCANL fails if it finds no characters other
    than those present in its argument.  SCANL crosses record boundaries.
    SCANL succeeds if the first character encountered in the search is one
    not in the set.

 Syntax

    pattern := SCANL ({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

    The following assignment statement creates a pattern that matches a
    sentence.  It assumes that a sentence ends in a period, exclamation
    mark, or question mark.  It also assumes that a sentence contains at
    least two letters.  The matched text does not include the punctuation
    mark.

    sentence_pattern := ANY ("ABCDEFGHIJKLMNOPQRSTUVWXYZ") + SCANL (".!?");

 Related Topics

    SCAN   SPAN   SPANL

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