ExtractRegularExpression

Family: RegularExpression · One form

What it does

ExtractRegularExpression takes regularExpression (an integer), text (a string) and array (a void), and answers an integer.

Syntax

ExtractRegularExpression(regularExpression integer, text string, array void) → integer

Parameters

NameType
regularExpressioninteger
textstring
arrayvoid

Every form returns

integer

Example · generated

DO  Print(ExtractRegularExpression(1, "hello", 0))  Sync()LOOP

ExtractRegularExpression is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

19 commands in RegularExpression