contents.gifprev1.gifnext1.gif

MATCH

Description:

MATCH creates a pattern that matches characters in the first parameter. MATCH forms a string from the contents of a buffer or range if they are specified as a parameter, then finds the string.

Syntax:

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

Example:

The following code segment will locate all the text from the word "PROCEDURE" through the the word "ENDPROCEDURE":

procedure$pattern := "PROCEDURE" & UNANCHOR & MATCH ("ENDPROCEDURE");

SEARCH( procedure$pattern, CURRENT_BUFFFER, FORWARD )

Errors:

TPU$_CONTROLC Execution aborted by [CTRL-C].