Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VAXTPU SPANL — VMS 5.2

 SPANL

    Creates a pattern matching the longest possible string containing line
    breaks and characters from the specified string, range, or buffer.

 Syntax

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

 Comments

    SPANL matches one or more line breaks and one or more characters, each
    of which must appear in the string, range, or buffer passed as the
    parameter.  SPANL fails if it does not find a character present in its
    argument.  To match only one line break, specify a null string as a
    parameter to SPANL.

 Examples

    1.  pat1 := SPANL ("1234567890");

        Creates a pattern matching any number and sequence of contiguous
        digits on one or more lines.

    2.  pat1 := SPANL (" ");

        Stores a pattern in PAT1 matching the longest sequence of blank
        characters starting at the current character position and
        continuing to an end-of-search condition.

 Related Topics

    SCAN    SCANL    SPAN    LINE_END

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