contents.gifprev1.gifnext1.gif

SCAN

Description:

SCAN searches for characters other than those appearing in the buffer, range, or string given as the parameter. Scan works by default in forward mode unless otherwise specified in the second parameter.

Syntax:

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

Example:

The following finds the longest pattern containing only non-digits:

hello := SCAN ("0123456789");

Errors:

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

Related Builtins:

SCANL

SPAN