contents.gifprev1.gifnext1.gif

ANY

Description:

When used in a pattern ANY matches some or all of the characters in the first parameter. The number of characters matched depends on the optional second argument which is a numeric count qualifier. The default value is 1, if the second argument is not provided.

Syntax:

pattern := ANY ({buffer | range | string} [, integer])

Examples:

An example of telling nu/TPU to match any one character in a pattern would be:

X := ANY ("AB");

Using the variable x in a search, it would match against any incidence of "A" or "B". Modifying the above with a count qualifier of two,

X := ANY ("AB", 2);

X now matches against "AA", "AB", "BA", and "BB".

Errors:

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

TPU$_MINIVALUE Integer in argument less than 1.