ExamineRegularExpression

Family: RegularExpression · One form

What it does

ExamineRegularExpression takes regularExpression (an integer) and text (a string), and answers an integer.

Syntax

ExamineRegularExpression(regularExpression integer, text string) → integer

Parameters

NameType
regularExpressioninteger
textstring

Every form returns

integer

Example · generated

DO  Print(ExamineRegularExpression(1, "hello"))  Sync()LOOP

ExamineRegularExpression 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